Skip to content

Commit

Permalink
Uses HttpFoundation getRequestUri instead of getPathInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopvilar committed Jun 2, 2017
1 parent 5184273 commit 3226916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function parse_request() {

// Fetch method and URI from somewhere
$httpMethod = $_SERVER['REQUEST_METHOD'];
$uri = $request->getPathInfo();
$uri = $request->getRequestUri();

if(strpos($uri, '/wp-admin') > -1) return;

Expand Down

0 comments on commit 3226916

Please sign in to comment.