summaryrefslogtreecommitdiffstats
path: root/system/classes/request.php
diff options
context:
space:
mode:
authorRoman Tsiupa <draconyster@gmail.com>2013-01-18 23:07:50 +0200
committerRoman Tsiupa <draconyster@gmail.com>2013-01-18 23:07:50 +0200
commitcde8cc7986f7cec810e34eed4c2feda88acfe970 (patch)
tree5114becb6a3a8e71508ad169f19d7d79116a758b /system/classes/request.php
parent65a7f45a570dde73e1ca1fefc1af15491772e8fc (diff)
downloadPHPixie-origin/ormwith.zip
PHPixie-origin/ormwith.tar.gz
PHPixie-origin/ormwith.tar.bz2
Request paersing with .htaccess disabledorigin/ormwith
Diffstat (limited to 'system/classes/request.php')
-rw-r--r--system/classes/request.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/classes/request.php b/system/classes/request.php
index dfe68f0..106697a 100644
--- a/system/classes/request.php
+++ b/system/classes/request.php
@@ -106,7 +106,10 @@ class Request {
$request = new Request();
$request->_post = $_POST;
$request->_get = $_GET;
- $url_parts = parse_url($_SERVER['REQUEST_URI']);
+ $uri = $_SERVER['REQUEST_URI'];
+ $basepath=Config::get('core.basepath','/');
+ $uri = preg_replace("#^{$basepath}index\.php#i", '', $uri);
+ $url_parts = parse_url($uri);
$request->route = Route::match($url_parts['path']);
$request->method=$_SERVER['REQUEST_METHOD'];
return $request;