Encode reserved @ character in URLs.

pull/184/merge
Mike Cao 9 years ago
parent 46b3bd6096
commit 1feeb95ff2

@ -1 +1 @@
1.2.14 1.2.15

@ -129,7 +129,7 @@ class Request {
// Default properties // Default properties
if (empty($config)) { if (empty($config)) {
$config = array( $config = array(
'url' => self::getVar('REQUEST_URI', '/'), 'url' => str_replace('@', '%40', self::getVar('REQUEST_URI', '/')),
'base' => str_replace(array('\\',' '), array('/','%20'), dirname(self::getVar('SCRIPT_NAME'))), 'base' => str_replace(array('\\',' '), array('/','%20'), dirname(self::getVar('SCRIPT_NAME'))),
'method' => self::getMethod(), 'method' => self::getMethod(),
'referrer' => self::getVar('HTTP_REFERER'), 'referrer' => self::getVar('HTTP_REFERER'),

Loading…
Cancel
Save