]> git.mjollnir.org Git - s9y.git/commitdiff
* Fix proper encoding of '%' sign when used in post titles
authorgarvinhicking <garvinhicking>
Sun, 2 Dec 2007 15:06:09 +0000 (15:06 +0000)
committergarvinhicking <garvinhicking>
Sun, 2 Dec 2007 15:06:09 +0000 (15:06 +0000)
      (garvinhicking)

docs/NEWS
include/functions_permalinks.inc.php

index 26390e17edd087cbd9b886bee0c75300ae43dffc..d50b5e11ad810fd53873654fa61e4365b4c6e08e 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -74,6 +74,9 @@ Version 1.3 ()
 Version 1.2.1 ()
 ------------------------------------------------------------------------
 
+    * Fix proper encoding of '%' sign when used in post titles
+      (garvinhicking)
+      
     * Encode RSS feed links, Patch by Hanno Boeck
 
     * Fix spartacus filter listing showing event plugin groups in the
index 8d07ff6c7539d49f2c5c9670cec0a02aa08a764f..ca97a35c7f7dbae0efaf152302b8798ad64df89e 100644 (file)
@@ -22,6 +22,7 @@ if (defined('S9Y_FRAMEWORK_PERMALINKS')) {
 function serendipity_makeFilename($str, $stripDots = false) {
     static $from = array(
                      ' ',
+                     '%',
 
                      'Ä',
                      'ä',
@@ -65,6 +66,7 @@ function serendipity_makeFilename($str, $stripDots = false) {
 
     static $to   = array(
                      '-',
+                     '%25',
 
                      'AE',
                      'ae',