FreeBSD Bugzilla – Attachment 32386 Details for
Bug 53530
[PATCH] query-pr.cgi doesn't work with urls enclosed in "<>" or containing a "&".
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
query-pr.cgi.patch
query-pr.cgi.patch (text/plain), 967 bytes, created by
Oliver Eikemeier
on 2003-06-20 04:40:11 UTC
(
hide
)
Description:
query-pr.cgi.patch
Filename:
MIME Type:
Creator:
Oliver Eikemeier
Created:
2003-06-20 04:40:11 UTC
Size:
967 bytes
patch
obsolete
>--- query-pr.cgi.orig Mon Jun 9 16:58:00 2003 >+++ query-pr.cgi Fri Jun 20 04:52:47 2003 >@@ -219,13 +219,23 @@ > } > > sub fixline { >- local($line) = shift; >- >- $line =~ s/&/&/g; >- $line =~ s/</</g; >- $line =~ s/>/>/g; >- $line =~ s%((http|ftp)://[^\s"\)\>,;]+)%<A HREF="$1">$1</A>%gi; >- $line =~ s%(\WPR[:s# \t]+)([a-z3486]+\/)?([0-9]+)%$1<A HREF="query-pr.cgi?pr=$3">$2$3</A>%ig; >- >- return &srcref($line); >+ local(@splitline) = split(/((?:https?|ftp):\/\/[^\s"\(\)<>,;]+)/, shift); >+ >+ local($isurl) = 0; >+ foreach (@splitline) { >+ if ($isurl) { >+ local($href) = local($html) = $_; >+ $href =~ s/&/%26/g; >+ $html =~ s/&/&/g; >+ $_ = "<A HREF=\"$href\">$html</A>"; >+ } else { >+ s/&/&/g; >+ s/</</g; >+ s/>/>/g; >+ s%(\WPR[:s# \t]+)([a-z3486]+\/)?([0-9]+)%$1<A HREF="query-pr.cgi?pr=$3">$2$3</A>%ig; >+ } >+ $isurl = ! $isurl; >+ } >+ >+ return &srcref(join('', @splitline)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53530
: 32386