[Fusionforge-commits] FusionForge branch master updated. dbc15076430028304323fcc10efe853fcaab42ca

Marc-Etienne VARGENAU vargenau at fusionforge.org
Wed Jun 18 12:14:40 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  dbc15076430028304323fcc10efe853fcaab42ca (commit)
      from  2bd80f970d20194a647818327663c26a45a603ba (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dbc15076430028304323fcc10efe853fcaab42ca
Author: Marc-Etienne Vargenau <Marc-Etienne.Vargenau at alcatel-lucent.com>
Date:   Wed Jun 18 12:14:09 2014 +0200

    wiki: encode spaces in '[[Help:Reini Urban]]' but not in '[[Upload:logo.jpg size=40x25 align=center]]

diff --git a/src/plugins/wiki/www/lib/PageType.php b/src/plugins/wiki/www/lib/PageType.php
index 560aa4e..86b3c93 100644
--- a/src/plugins/wiki/www/lib/PageType.php
+++ b/src/plugins/wiki/www/lib/PageType.php
@@ -241,7 +241,12 @@ class PageType_interwikimap extends PageType
         else
             $url .= $page_enc;
 
-        $url = str_replace(' ', '%20', $url);
+        // Encode spaces in '[[Help:Reini Urban]]'
+        // but not in '[[Upload:logo.jpg size=40x25 align=center]]'
+        if ($moniker != 'Upload') {
+            $url = str_replace(' ', '%20', $url);
+        }
+
         $link = HTML::a(array('href' => $url));
 
         if (!$linktext) {

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/wiki/www/lib/PageType.php |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list