Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2666ef9f
Commit
2666ef9f
authored
Feb 07, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use stricter regex anchors
parent
636e9bdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/gitlab/route_map.rb
lib/gitlab/route_map.rb
+1
-1
No files found.
lib/gitlab/route_map.rb
View file @
2666ef9f
...
@@ -35,7 +35,7 @@ module Gitlab
...
@@ -35,7 +35,7 @@ module Gitlab
source_pattern
=
source_pattern
[
1
...-
1
].
gsub
(
'\/'
,
'/'
)
source_pattern
=
source_pattern
[
1
...-
1
].
gsub
(
'\/'
,
'/'
)
begin
begin
source_pattern
=
Regexp
.
new
(
"^
#{
source_pattern
}
$"
)
source_pattern
=
/\A
#{
source_pattern
}
\z/
rescue
RegexpError
=>
e
rescue
RegexpError
=>
e
raise
FormatError
,
"Route map entry source is not a valid regular expression:
#{
e
}
"
raise
FormatError
,
"Route map entry source is not a valid regular expression:
#{
e
}
"
end
end
...
...
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