diff options
author | Frédéric Buclin <LpSolit@netscape.net> | 2016-05-16 23:12:18 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@netscape.net> | 2016-05-16 23:12:18 +0200 |
commit | b08fccefe77cea448f4b677f474daf2480187915 (patch) | |
tree | 4066e07b2bc34c33240a2f3d9e7bc35cf80f373e | |
parent | c12c092f9fd84cd0f5b5645f61e29fe1260063dc (diff) | |
parent | 40d86a554f5da8f5ede4b3982460be7a95fd1379 (diff) | |
download | bugs-b08fccefe77cea448f4b677f474daf2480187915.tar bugs-b08fccefe77cea448f4b677f474daf2480187915.tar.gz bugs-b08fccefe77cea448f4b677f474daf2480187915.tar.bz2 bugs-b08fccefe77cea448f4b677f474daf2480187915.tar.xz bugs-b08fccefe77cea448f4b677f474daf2480187915.zip |
Bugzilla 5.0.3
-rw-r--r-- | Bugzilla/Constants.pm | 2 | ||||
-rwxr-xr-x | showdependencygraph.cgi | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 015a25572..479212686 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -200,7 +200,7 @@ use Memoize; # CONSTANTS # # Bugzilla version -use constant BUGZILLA_VERSION => "5.0.2+"; +use constant BUGZILLA_VERSION => "5.0.3+"; # A base link to the current REST Documentation. We place it here # as it will need to be updated to whatever the current release is. diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 6d4cb1e71..7b2d2f55d 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -55,13 +55,19 @@ sub CreateImagemap { $default = qq{<area alt="" shape="default" href="$1">\n}; } - if ($line =~ /^rectangle \((.*),(.*)\) \((.*),(.*)\) (http[^ ]*) (\d+)(\\n.*)?$/) { + if ($line =~ /^rectangle \((\d+),(\d+)\) \((\d+),(\d+)\) (http[^ ]*) (\d+)(?:\\n.*)?$/) { my ($leftx, $rightx, $topy, $bottomy, $url, $bugid) = ($1, $3, $2, $4, $5, $6); # Pick up bugid from the mapdata label field. Getting the title from # bugtitle hash instead of mapdata allows us to get the summary even # when showsummary is off, and also gives us status and resolution. + # This text is safe; it has already been escaped. my $bugtitle = $bugtitles{$bugid}; + + # The URL is supposed to be safe, because it's built manually. + # But in case someone manages to inject code, it's safer to escape it. + $url = html_quote($url); + $map .= qq{<area alt="bug $bugid" name="bug$bugid" shape="rect" } . qq{title="$bugtitle" href="$url" } . qq{coords="$leftx,$topy,$rightx,$bottomy">\n}; |