From 4232778161b6fafd0e3e64354a359aece4f5b3d0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Jul 27 2016 14:31:05 +0000 Subject: v0.90.5 (cherry picked from commit 7b6b8c6f4eed9a91b7f58589870e7db7e39f5824) --- diff --git a/.gitignore b/.gitignore index 8d688b4..46f4fe2 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ glpi-0.72.4-11497.tar.gz /glpi-0.90.2.tar.gz /glpi-0.90.3.tar.gz /glpi-0.90.4.tar.gz +/glpi-0.90.5.tar.gz diff --git a/glpi-0.90-upstream2.patch b/glpi-0.90-upstream2.patch deleted file mode 100644 index 148d2f8..0000000 --- a/glpi-0.90-upstream2.patch +++ /dev/null @@ -1,59 +0,0 @@ -From 4a857c3bfd2354196b7035e1ab6356b724813df7 Mon Sep 17 00:00:00 2001 -From: Johan Cwiklinski -Date: Tue, 19 Jul 2016 16:17:38 +0200 -Subject: [PATCH] Only check for param name, we do not have any CommonDBTM - subclass here - ---- - ajax/dropdownRubDocument.php | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ajax/dropdownRubDocument.php b/ajax/dropdownRubDocument.php -index f057b6c..15f321d 100644 ---- a/ajax/dropdownRubDocument.php -+++ b/ajax/dropdownRubDocument.php -@@ -67,7 +67,7 @@ - } - } - -- if (!is_subclass_of($_POST['myname'], 'CommonDBTM')) { -+ if (preg_match('/[^a-z_\-0-9]/i', $_POST['myname'])) { - throw new \RuntimeException('Invalid name provided!'); - } - -From fae0968a43947354598e073ab311970b5eb546e5 Mon Sep 17 00:00:00 2001 -From: Johan Cwiklinski -Date: Tue, 19 Jul 2016 16:36:09 +0200 -Subject: [PATCH] Fix overrided variable - ---- - ajax/dropdownRubDocument.php | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/ajax/dropdownRubDocument.php b/ajax/dropdownRubDocument.php -index 15f321d..9a1cab3 100644 ---- a/ajax/dropdownRubDocument.php -+++ b/ajax/dropdownRubDocument.php -@@ -50,16 +50,16 @@ - - // Clean used array - if (isset($_POST['used']) && is_array($_POST['used']) && (count($_POST['used']) > 0)) { -- $used = ''; -- foreach ($_POST['used'] as $used) { -- if ($used !== '') { -- $used .= ', '; -+ $used_qry = ''; -+ foreach ($_POST['used'] as $current_used) { -+ if ($used_qry !== '') { -+ $used_qry .= ', '; - } -- $used .= (int)$used; -+ $used_qry .= (int)$current_used; - } - $query = "SELECT `id` - FROM `glpi_documents` -- WHERE `id` IN (".$used.") -+ WHERE `id` IN (".$used_qry.") - AND `documentcategories_id` = '".(int)$_POST["rubdoc"]."'"; - - foreach ($DB->request($query) AS $data) { diff --git a/glpi.spec b/glpi.spec index b7aab42..71a1161 100644 --- a/glpi.spec +++ b/glpi.spec @@ -27,8 +27,8 @@ %endif Name: glpi -Version: 0.90.4 -Release: 2%{?dist} +Version: 0.90.5 +Release: 1%{?dist} Summary: Free IT asset management software Summary(fr): Gestion Libre de Parc Informatique @@ -49,7 +49,6 @@ Patch0: glpi-0.90-cron.patch Patch1: glpi-0.90-autoload.patch # Upstream patches Patch2: glpi-0.90-upstream.patch -Patch3: glpi-0.90-upstream2.patch BuildArch: noarch BuildRequires: gettext @@ -130,7 +129,6 @@ grep %{version} config/define.php %patch0 -p0 %patch1 -p0 %patch2 -p1 -%patch3 -p1 find . -name \*.orig -exec rm {} \; -print @@ -304,6 +302,10 @@ fi %changelog +* Wed Jul 27 2016 Remi Collet - 0.90.5-1 +- update to 0.90.5 + https://github.com/glpi-project/glpi/issues?q=milestone:0.90.5 + * Sat Jul 23 2016 Remi Collet - 0.90.4-2 - update to 0.90.4 https://github.com/glpi-project/glpi/issues?q=milestone:0.90.4 diff --git a/sources b/sources index dd95b49..9fd0f06 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3ee7ea981e55f5db2a2e3fd4e8d01574 glpi-0.90.4.tar.gz +beaa3d1295d14c6b8b793b2944cfd1e1 glpi-0.90.5.tar.gz