Skip to content

Commit

Permalink
Adding basic handling of PATH_INFO for Path
Browse files Browse the repository at this point in the history
  • Loading branch information
initvector committed May 1, 2015
1 parent fda9294 commit fdb535b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/core/class.request.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ protected function _LoadEnvironment() {
SafeParseStr($Get, $Get, $Original);
}

if (isset($Get['_p'])) {
if (isset($_SERVER['X_REWRITE']) && isset($_SERVER['PATH_INFO'])) {
$Path = $_SERVER['PATH_INFO'];
} elseif (isset($Get['_p'])) {
$Path = $Get['_p'];
unset($_GET['_p']);
} elseif (isset($Get['p'])) {
Expand Down

0 comments on commit fdb535b

Please sign in to comment.