Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
81c26ce6
Commit
81c26ce6
authored
Feb 16, 2013
by
Hugo Seabrook
Committed by
Frédéric Buclin
Feb 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 825758: Most Bugzilla::BugUrl::* modules incorrectly validate the domain name
r/a=LpSolit
parent
2392c2c8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
Debian.pm
Bugzilla/BugUrl/Debian.pm
+1
-1
GitHub.pm
Bugzilla/BugUrl/GitHub.pm
+1
-1
Google.pm
Bugzilla/BugUrl/Google.pm
+1
-1
Launchpad.pm
Bugzilla/BugUrl/Launchpad.pm
+1
-1
SourceForge.pm
Bugzilla/BugUrl/SourceForge.pm
+1
-1
GetSatisfaction.pm
extensions/MoreBugUrl/lib/GetSatisfaction.pm
+1
-1
PHP.pm
extensions/MoreBugUrl/lib/PHP.pm
+2
-2
RT.pm
extensions/MoreBugUrl/lib/RT.pm
+1
-1
No files found.
Bugzilla/BugUrl/Debian.pm
View file @
81c26ce6
...
...
@@ -19,7 +19,7 @@ sub should_handle {
# Debian BTS URLs can look like various things:
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1234
# http://bugs.debian.org/1234
return
(
$uri
->
authority
=~
/^bugs.debian.org$/i
return
(
lc
(
$uri
->
authority
)
eq
'bugs.debian.org'
and
((
$uri
->
path
=~
/bugreport\.cgi$/
and
$uri
->
query_param
(
'bug'
)
=~
m
|^\
d
+
$|
)
or
$uri
->
path
=~
m
|^/\
d
+
$|
))
?
1
:
0
;
...
...
Bugzilla/BugUrl/GitHub.pm
View file @
81c26ce6
...
...
@@ -18,7 +18,7 @@ sub should_handle {
# GitHub issue URLs have only one form:
# https://github.com/USER_OR_TEAM_OR_ORGANIZATION_NAME/REPOSITORY_NAME/issues/111
return
(
$uri
->
authority
=~
/^github.com$/i
return
(
lc
(
$uri
->
authority
)
eq
'github.com'
and
$uri
->
path
=~
m
|^
/[^/
]
+
/[^/
]
+
/issues/
\
d
+
$|
)
?
1
:
0
;
}
...
...
Bugzilla/BugUrl/Google.pm
View file @
81c26ce6
...
...
@@ -18,7 +18,7 @@ sub should_handle {
# Google Code URLs only have one form:
# http(s)://code.google.com/p/PROJECT_NAME/issues/detail?id=1234
return
(
$uri
->
authority
=~
/^code.google.com$/i
return
(
lc
(
$uri
->
authority
)
eq
'code.google.com'
and
$uri
->
path
=~
m
|^
/p/
[
^
/]+/iss
ues
/
detail
$|
and
$uri
->
query_param
(
'id'
)
=~
/^\d+$/
)
?
1
:
0
;
}
...
...
Bugzilla/BugUrl/Launchpad.pm
View file @
81c26ce6
...
...
@@ -20,7 +20,7 @@ sub should_handle {
# https://bugs.launchpad.net/ubuntu/+bug/1234
# https://launchpad.net/bugs/1234
# All variations end with either "/bugs/1234" or "/+bug/1234"
return
(
$uri
->
authority
=~
/launchpad.net$/
return
(
$uri
->
authority
=~
/launchpad
\
.net$/
and
$uri
->
path
=~
m
|
bugs
?
/\
d
+
$|
)
?
1
:
0
;
}
...
...
Bugzilla/BugUrl/SourceForge.pm
View file @
81c26ce6
...
...
@@ -18,7 +18,7 @@ sub should_handle {
# SourceForge tracker URLs have only one form:
# http://sourceforge.net/tracker/?func=detail&aid=111&group_id=111&atid=111
return
(
$uri
->
authority
=~
/^sourceforge.net$/i
return
(
lc
(
$uri
->
authority
)
eq
'sourceforge.net'
and
$uri
->
path
=~
m
|
/tracker/
|
and
$uri
->
query_param
(
'func'
)
eq
'detail'
and
$uri
->
query_param
(
'aid'
)
...
...
extensions/MoreBugUrl/lib/GetSatisfaction.pm
View file @
81c26ce6
...
...
@@ -18,7 +18,7 @@ sub should_handle {
# GetSatisfaction URLs only have one form:
# http(s)://getsatisfaction.com/PROJECT_NAME/topics/TOPIC_NAME
return
(
$uri
->
authority
=~
/^getsatisfaction.com$/i
return
(
lc
(
$uri
->
authority
)
eq
'getsatisfaction.com'
and
$uri
->
path
=~
m
|^
/[^/
]
+
/topics/
[
^/
]
+
$|
)
?
1
:
0
;
}
...
...
extensions/MoreBugUrl/lib/PHP.pm
View file @
81c26ce6
...
...
@@ -18,8 +18,8 @@ sub should_handle {
# PHP Bug URLs have only one form:
# https://bugs.php.net/bug.php?id=1234
return
(
$uri
->
authority
=~
/^bugs.php.net$/i
and
$uri
->
path
=~
m
|/
bug
.
php
$|
return
(
lc
(
$uri
->
authority
)
eq
'bugs.php.net'
and
$uri
->
path
=~
m
|/
bug
\
.
php
$|
and
$uri
->
query_param
(
'id'
)
=~
/^\d+$/
)
?
1
:
0
;
}
...
...
extensions/MoreBugUrl/lib/RT.pm
View file @
81c26ce6
...
...
@@ -19,7 +19,7 @@ sub should_handle {
# RT URLs can look like various things:
# http://example.com/rt/Ticket/Display.html?id=1234
# https://example.com/Public/Bug/Display.html?id=1234
return
(
$uri
->
path
=~
m
|/
Display
.
html
$|
return
(
$uri
->
path
=~
m
|/
Display
\
.
html
$|
and
$uri
->
query_param
(
'id'
)
=~
/^\d+$/
)
?
1
:
0
;
}
...
...
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