[textpattern] r5886 committed - Fix percent encoding of space character (%20) in site URL. Thanks Pete...

0 views
Skip to first unread message

textp...@googlecode.com

unread,
Sep 11, 2014, 5:43:39 PM9/11/14
to txp...@googlegroups.com
Revision: 5886
Author: stefdawson
Date: Thu Sep 11 21:43:25 2014 UTC
Log: Fix percent encoding of space character (%20) in site URL. Thanks
Pete. Fixes #421
https://code.google.com/p/textpattern/source/detail?r=5886

Modified:
/development/4.5/textpattern/setup/index.php

=======================================
--- /development/4.5/textpattern/setup/index.php Wed Sep 10 10:15:39 2014
UTC
+++ /development/4.5/textpattern/setup/index.php Thu Sep 11 21:43:25 2014
UTC
@@ -574,7 +574,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