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
6d7c6ee8
Commit
6d7c6ee8
authored
Aug 22, 2013
by
Simon Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 891236 - Allow Redmine See Also URLs
r=justdave, a=justdave
parent
a91d06cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
Redmine.pm
extensions/MoreBugUrl/lib/Redmine.pm
+37
-0
No files found.
extensions/MoreBugUrl/lib/Redmine.pm
0 → 100644
View file @
6d7c6ee8
# 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::
Redmine
;
use
strict
;
use
base
qw(Bugzilla::BugUrl)
;
###############################
#### Methods ####
###############################
sub
should_handle
{
my
(
$class
,
$uri
)
=
@_
;
return
(
$uri
->
path
=~
m
|
/issues/
\
d
+
$|
)
?
1
:
0
;
}
sub
_check_value
{
my
$class
=
shift
;
my
$uri
=
$class
->
SUPER::
_check_value
(
@_
);
# Redmine URLs have only one form:
# http://demo.redmine.com/issues/111
# Make sure there are no query parameters.
$uri
->
query
(
undef
);
# 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