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
9f09d8dd
Commit
9f09d8dd
authored
Jan 29, 2014
by
Simon Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 898920 - Allow Savane (e.g. Savannah) See Also URLs
r=justdave, a=justdave
parent
533b9c69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
Savane.pm
extensions/MoreBugUrl/lib/Savane.pm
+38
-0
No files found.
extensions/MoreBugUrl/lib/Savane.pm
0 → 100644
View file @
9f09d8dd
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
package
Bugzilla::Extension::MoreBugUrl::
Savane
;
use
5.10.1
;
use
strict
;
use
parent
qw(Bugzilla::BugUrl)
;
###############################
#### Methods ####
###############################
sub
should_handle
{
my
(
$class
,
$uri
)
=
@_
;
return
(
$uri
->
as_string
=~
m
|
/bugs/
(
index
\.
php
)?
\
?
\
d
+
$|
)
?
1
:
0
;
}
sub
_check_value
{
my
$class
=
shift
;
my
$uri
=
$class
->
SUPER::
_check_value
(
@_
);
# Savane URLs have only two forms:
# http://gna.org/bugs/index.php?12345
# http://gna.org/bugs/?12345
# And remove any # part if there is one.
$uri
->
fragment
(
undef
);
return
$uri
;
}
1
;
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