Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
7647c3fc
Commit
7647c3fc
authored
Sep 24, 2012
by
Mohammad Sadeghi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added 'u' flag for preg_match to match UTF-8 URIs.
parent
9df9a5df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
router.php
laravel/routing/router.php
+1
-3
No files found.
laravel/routing/router.php
View file @
7647c3fc
...
...
@@ -76,7 +76,6 @@ class Router {
public
static
$patterns
=
array
(
'(:num)'
=>
'([0-9]+)'
,
'(:any)'
=>
'([a-zA-Z0-9\.\-_%=]+)'
,
'(:segment)'
=>
'([^/]+)'
,
'(:all)'
=>
'(.*)'
,
);
...
...
@@ -88,7 +87,6 @@ class Router {
public
static
$optional
=
array
(
'/(:num?)'
=>
'(?:/([0-9]+)'
,
'/(:any?)'
=>
'(?:/([a-zA-Z0-9\.\-_%=]+)'
,
'/(:segment?)'
=>
'(?:/([^/]+)'
,
'/(:all?)'
=>
'(?:/(.*)'
,
);
...
...
@@ -496,7 +494,7 @@ class Router {
// we just did before we started searching.
if
(
str_contains
(
$route
,
'('
))
{
$pattern
=
'#^'
.
static
::
wildcards
(
$route
)
.
'$#'
;
$pattern
=
'#^'
.
static
::
wildcards
(
$route
)
.
'$#
u
'
;
// If we get a match we'll return the route and slice off the first
// parameter match, as preg_match sets the first array item to the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment