Skip to content

Commit

Permalink
keyword lowercase
Browse files Browse the repository at this point in the history
(cherry picked from commit cb1ba83)
  • Loading branch information
wellingguzman committed Apr 26, 2017
1 parent 6a1c07a commit 2095846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/Directus/Application/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function getInstance($refresh = false)

// remove the query string from the request uri
$qsPosition = strpos($requestUri, '?');
if ($qsPosition !== FALSE) {
if ($qsPosition !== false) {
$requestUri = substr_replace($requestUri, '', $qsPosition);
}

Expand Down

2 comments on commit 2095846

@WorksDev
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, think parse_url($requestUri, PHP_URL_PATH); would be the better variant because of NPath Complexity

@wellingguzman
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @WorksDev, updating it now!

Please sign in to comment.