]> git.mjollnir.org Git - s9y.git/commitdiff
Fixes from Boris from the forums:
authorgarvinhicking <garvinhicking>
Mon, 24 Oct 2005 17:29:05 +0000 (17:29 +0000)
committergarvinhicking <garvinhicking>
Mon, 24 Oct 2005 17:29:05 +0000 (17:29 +0000)
The first bug is located in include/plugin_internal.inc.php:
in the long switch-statement is a duplicate Entry for show_atom0.3 and none for show_atom1.0 with the result, that there's no Atom 1.0-Option in the configuration.

Second: The function serendipity_makeFilename in include/functions_permalinks.inc.php is not utf-8 ready. I always helped myself converting it manually in 0.8x, but now s9y supports utf-8 this function should do this too. Smile
If not, all those special chars are not converted, but striped from the URLs.

docs/NEWS
include/functions_permalinks.inc.php
include/plugin_internal.inc.php

index 43dfa75780b2b1a37afbd3b59080926cd6321875..a4ee7341fda9becb4dfa4e9b62e13334cec0d7ec 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,13 @@
 Version 0.9-beta4 ()
 ------------------------------------------------------------------------
 
+    * Make serendipity_makeFilename function be UTF-8 aware.
+
+    * Fix syndication plugin not allowing to configure Atom 1.0 feed.
+      Thanks to Boris from the forums!
+
+    * Fix an issue of privilege escalation for non-admins (garvinhicking)
+    
     * Fix a parse error in the Importer, introduced in beta3
       (garvinhicking)
 
index e37bf94ebc8ae5a06df9ce49811faef83ea76bb9..8c65e2b5eae92aea72a6214808b6ad9ea0de42ba 100644 (file)
@@ -89,6 +89,12 @@ function serendipity_makeFilename($str) {
 
                      'y');
 
+    if (LANG_CHARSET == 'UTF-8') {
+        // URLs need to be 7bit - since this function takes care of the most common ISO-8859-1
+        // characters, try to UTF8-decode the string first.
+        $str = utf8_decode($str);
+    }
+
     if (isset($GLOBALS['i18n_filename_from'])) {
         // Replace international chars not detected by every locale.
         // The array of chars is defined in the language file.
index 5fd483c92d6350c39f5a7905b94ddf1716f4bcc3..5281f6d40d14572b9e7a3d7fe9858a31a344c82d 100644 (file)
@@ -645,7 +645,7 @@ class serendipity_syndication_plugin extends serendipity_plugin {
                 $propbag->add('default',     'false');
                 break;
 
-            case 'show_atom0.3':
+            case 'show_atom1.0':
                 $propbag->add('type',        'boolean');
                 $propbag->add('name',        SYNDICATION_PLUGIN_ATOM10);
                 $propbag->add('description', '');