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
ce5d97ef
Commit
ce5d97ef
authored
May 12, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 232861: Prevent references to bugs or comments from being expanded in attachment links
r=timeless,a=justdave
parent
3388e43d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
globals.pl
globals.pl
+5
-3
No files found.
globals.pl
View file @
ce5d97ef
...
...
@@ -875,13 +875,15 @@ sub quoteUrls {
$text
=~
s
~\
b
(
mailto:
|
)?([
\
w
\.\-\+\=
]
+\
@
[\
w
\-
]
+
(?:
\.
[
\
w
\-
]
+
)
+
)
\
b
~<
a
href
=\
"mailto:$2\">$1$2</a>~igx;
# attachment links - handle both cases separatly for simplicity
# attachment links - handle both cases separat
e
ly for simplicity
$text =~ s~((?:^Created\ an\ |\b)attachment\s*\(id=(\d+)\))
~GetAttachmentLink($2, $1)
~($things[$count++] = GetAttachmentLink($2, $1)) &&
("
\
0
\
0
" . ($count-1) . "
\
0
\
0
")
~egmx;
$text =~ s~\b(attachment\s*\#?\s*(\d+))
~GetAttachmentLink($2, $1)
~($things[$count++] = GetAttachmentLink($2, $1)) &&
("
\
0
\
0
" . ($count-1) . "
\
0
\
0
")
~egmxi;
# This handles bug a, comment b type stuff. Because we're using /g
...
...
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