]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 355924: report.cgi generates bare '&' in img src URL
authorolav%bkor.dhs.org <>
Mon, 23 Oct 2006 05:32:01 +0000 (05:32 +0000)
committerolav%bkor.dhs.org <>
Mon, 23 Oct 2006 05:32:01 +0000 (05:32 +0000)
Patch by Olav Vitters <olav@bkor.dhs.org> r=LpSolit a=justdave

template/en/default/filterexceptions.pl
template/en/default/reports/report.html.tmpl

index dbfb5249a5b575d0487fd8154bda8061fcd99ea8..58988b68e2057a096aa848f343b45be662dadd7d 100644 (file)
 ],
 
 'reports/report.html.tmpl' => [
-  'imagebase', 
   'width', 
   'height', 
   'imageurl', 
index 5e7d74dac40a1c6ad39b494d385b394ac8577590..06acaf42279e455eed143aa13517cd5b97e45564 100644 (file)
@@ -29,6 +29,7 @@
   # format: string. Format of the individual reports.
   # width: integer. For image charts, height of the image.
   # height: integer. For image charts, width of the image.
+  # imagebase: string. Base URL for chart image.
   # switchbase: string. Base URL for format switching.
   # cumulate: boolean. For bar/line charts, whether to cumulate data sets.
   #%]
@@ -97,7 +98,7 @@
         <h2>[% tbl_disp FILTER html %]</h2>
       [% END %]
       
-      [% imageurl = BLOCK %]report.cgi?[% imagebase %]&amp;format=
+      [% imageurl = BLOCK %]report.cgi?[% imagebase FILTER html %]&amp;format=
         [% format FILTER url_quote %]&amp;ctype=png&amp;action=plot&amp;
         [% IF tbl_field %]
           [% IF tbl != "-total-" %]