Skip to content

Commit

Permalink
Fix improper use of mb_substr() (#16081)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlakoff authored and taylorotwell committed Oct 24, 2016
1 parent 411aa8e commit 810311e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public function to($path, $extra = [], $secure = null)
$root = $this->getRootUrl($scheme);

if (($queryPosition = strpos($path, '?')) !== false) {
$query = mb_substr($path, $queryPosition);
$path = mb_substr($path, 0, $queryPosition);
$query = substr($path, $queryPosition);
$path = substr($path, 0, $queryPosition);
} else {
$query = '';
}
Expand Down

0 comments on commit 810311e

Please sign in to comment.