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
9e1efb5e
Commit
9e1efb5e
authored
Nov 24, 2014
by
Matt Selsky
Committed by
Gervase Markham
Nov 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Are you sure you want to check in on branch master
parent
82674d42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
SourceForge.pm
Bugzilla/BugUrl/SourceForge.pm
+13
-2
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+1
-1
No files found.
Bugzilla/BugUrl/SourceForge.pm
View file @
9e1efb5e
...
@@ -22,12 +22,18 @@ sub should_handle {
...
@@ -22,12 +22,18 @@ sub should_handle {
# SourceForge tracker URLs have only one form:
# SourceForge tracker URLs have only one form:
# http://sourceforge.net/tracker/?func=detail&aid=111&group_id=111&atid=111
# http://sourceforge.net/tracker/?func=detail&aid=111&group_id=111&atid=111
# SourceForge Allura ticket URLs have several forms:
# http://sourceforge.net/p/project/bugs/12345/
# http://sourceforge.net/p/project/feature-requests/12345/
# http://sourceforge.net/p/project/patches/12345/
# http://sourceforge.net/p/project/support-requests/12345/
return
(
lc
(
$uri
->
authority
)
eq
'sourceforge.net'
return
(
lc
(
$uri
->
authority
)
eq
'sourceforge.net'
and
$uri
->
path
=~
m
|
/tracker/
|
and
((
$uri
->
path
eq
'/tracker/'
and
$uri
->
query_param
(
'func'
)
eq
'detail'
and
$uri
->
query_param
(
'func'
)
eq
'detail'
and
$uri
->
query_param
(
'aid'
)
and
$uri
->
query_param
(
'aid'
)
and
$uri
->
query_param
(
'group_id'
)
and
$uri
->
query_param
(
'group_id'
)
and
$uri
->
query_param
(
'atid'
))
?
1
:
0
;
and
$uri
->
query_param
(
'atid'
))
or
$uri
->
path
=~
m!^/p/[^/]+/(?:bugs|feature-requests|patches|support-requests)/\d+/?$!
))
?
1
:
0
;
}
}
sub
_check_value
{
sub
_check_value
{
...
@@ -38,6 +44,11 @@ sub _check_value {
...
@@ -38,6 +44,11 @@ sub _check_value {
# Remove any # part if there is one.
# Remove any # part if there is one.
$uri
->
fragment
(
undef
);
$uri
->
fragment
(
undef
);
# Make sure the trailing slash is present
my
$path
=
$uri
->
path
;
$path
=~
s!/*$!/!
;
$uri
->
path
(
$path
);
return
$uri
;
return
$uri
;
}
}
...
...
template/en/default/global/user-error.html.tmpl
View file @
9e1efb5e
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
<li>An issue in a JIRA installation.</li>
<li>An issue in a JIRA installation.</li>
<li>A ticket in a Trac installation.</li>
<li>A ticket in a Trac installation.</li>
<li>A b[% %]ug in a MantisBT installation.</li>
<li>A b[% %]ug in a MantisBT installation.</li>
<li>A b[% %]ug on sourceforge.net.</li>
<li>A b[% %]ug o
r ticket o
n sourceforge.net.</li>
<li>An issue/pull request on github.com.</li>
<li>An issue/pull request on github.com.</li>
[% Hook.process('bug_url_invalid_tracker') %]
[% Hook.process('bug_url_invalid_tracker') %]
</ul>
</ul>
...
...
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