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
f3043f8c
Commit
f3043f8c
authored
Sep 18, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 593173: Make See Also recognize both "http" and "https" links for local
bugs as being the same bug. r=timello, a=mkanat
parent
b7777aee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
Bug.pm
Bugzilla/Bug.pm
+11
-5
No files found.
Bugzilla/Bug.pm
View file @
f3043f8c
...
...
@@ -2906,11 +2906,17 @@ sub add_see_also {
$uri
->
query
(
"id=$bug_id"
);
# And remove any # part if there is one.
$uri
->
fragment
(
undef
);
$result
=
$uri
->
canonical
->
as_string
;
# See Also field of the referenced bug is updated
# to point to the current bug.
if
(
$result
=~
m/^\Q$local_bug_uri\E/
and
!
$skip_recursion
)
{
my
$uri_canonical
=
$uri
->
canonical
;
$result
=
$uri_canonical
->
as_string
;
# If this is a link to a local bug (treating the domain
# case-insensitively and ignoring http(s)://), then also update
# the other bug to point at this one.
my
$canonical_local
=
URI
->
new
(
$local_bug_uri
)
->
canonical
;
if
(
!
$skip_recursion
and
$canonical_local
->
authority
eq
$uri_canonical
->
authority
and
$canonical_local
->
path
eq
$uri_canonical
->
path
)
{
my
$ref_bug
=
Bugzilla::
Bug
->
check
(
$bug_id
);
if
(
$ref_bug
->
id
==
$self
->
id
)
{
ThrowUserError
(
'see_also_self_reference'
);
...
...
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