[textpattern] r5887 committed - Fix percent encoding of space character in site URL. See Issue 421

0 views
Skip to first unread message

textp...@googlecode.com

unread,
Sep 11, 2014, 5:50:20 PM9/11/14
to txp...@googlegroups.com
Revision: 5887
Author: stefdawson
Date: Thu Sep 11 21:50:08 2014 UTC
Log: Fix percent encoding of space character in site URL. See Issue 421
https://code.google.com/p/textpattern/source/detail?r=5887

Modified:
/development/4.x/textpattern/setup/index.php

=======================================
--- /development/4.x/textpattern/setup/index.php Thu Sep 11 20:49:34 2014
UTC
+++ /development/4.x/textpattern/setup/index.php Thu Sep 11 21:50:08 2014
UTC
@@ -572,7 +572,7 @@
$dbcharset = $txpcfg['dbcharset'];

$siteurl = str_replace("http://", '', $_SESSION['siteurl']);
- $siteurl = rtrim($siteurl, "/");
+ $siteurl = str_replace(' ', '%20', rtrim($siteurl,"/"));
$urlpath = preg_replace('#^[^/]+#', '', $siteurl);

define("PFX",trim($dprefix));
Reply all
Reply to author
Forward
0 new messages