[debian-edu-commits] debian-edu/pkg-team/ 01/01: debian/patches: Add 1029_better-whitespace-cleanup-in-genuid.patch. Prevent gen_uids() from generating UIDs containing blanks.

Mike Gabriel sunweaver at debian.org
Thu Jul 27 06:51:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository gosa.

commit 94907f5b03ae1eef7f022db7949cb7e403dac0db
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu Jul 27 08:48:19 2017 +0200

    debian/patches: Add 1029_better-whitespace-cleanup-in-genuid.patch. Prevent gen_uids() from generating UIDs containing blanks.
---
 .../1029_better-whitespace-cleanup-in-genuid.patch       | 16 ++++++++++++++++
 debian/patches/series                                    |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/1029_better-whitespace-cleanup-in-genuid.patch b/debian/patches/1029_better-whitespace-cleanup-in-genuid.patch
new file mode 100644
index 0000000..c5aea23
--- /dev/null
+++ b/debian/patches/1029_better-whitespace-cleanup-in-genuid.patch
@@ -0,0 +1,16 @@
+Description: Remove all white-spaces from attributes before generating the UIDs.
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+Abstract:
+ During development of the GOsa² SchoolManager Add-On, it was discovered that in
+ some cases the gen_uids() function would return UIDs that contained blanks.
+
+--- a/gosa-core/include/functions.inc
++++ b/gosa-core/include/functions.inc
+@@ -3804,6 +3804,7 @@
+              $value = iconv('UTF-8', 'US-ASCII//TRANSLIT', $value);
+         }
+         $value = preg_replace('/[^(\x20-\x7F)]*/','',$value);
++        $value = preg_replace('/\s/', '', $value);
+         $attributes[$name] = strtolower($value);
+     }
+     
diff --git a/debian/patches/series b/debian/patches/series
index 1d854bc..44c25ad 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -33,6 +33,7 @@
 1026_fix-deprecated-constructor-format.patch
 1027_fix-sudo-fqdn.patch
 1028_use-mysqli-instead-of-mysql.patch
+1029_better-whitespace-cleanup-in-genuid.patch
 2001_fix-smarty-location.patch
 2002_fix-template-location.patch
 2003_fix-class-mapping.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list