Author: sevein
Date: Wed Dec 15 07:39:05 2010
New Revision: 8889

Log:
Ignore apostrophes for slugs generation. Fixes issue 1909.

Modified:
   trunk/lib/model/QubitSlug.php

Modified: trunk/lib/model/QubitSlug.php
==============================================================================
--- trunk/lib/model/QubitSlug.php       Wed Dec 15 07:08:48 2010        (r8888)
+++ trunk/lib/model/QubitSlug.php       Wed Dec 15 07:39:05 2010        (r8889)
@@ -51,6 +51,9 @@
 
     $slug = strtolower($slug);
 
+    // Remove apostrophes
+    $slug = preg_replace('/\'/', '', $slug);
+
     // Allow only digits, letters, and dashes.  Replace sequences of other
     // characters with dash
     $slug = preg_replace('/[^0-9a-z]+/', '-', $slug);

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to