Commit a38539a7 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 312933 Query.cgi leaks product names

Patch by Joel Peshkin <bugreport@peshkin.net> r=lpsolit, a=justdave
parent 22212e51
......@@ -43,7 +43,13 @@ var tms = new Array();
[% nclass = 0 %]
[% FOREACH c = classification %]
prods[[% nclass FILTER js %]] = [
[%- FOREACH item = c.products %]'[% item.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ];
[% sep = '' %]
[%- FOREACH item = c.products -%]
[%- IF user.can_see_product(item.name) -%]
[%- sep FILTER js %]'[% item.name FILTER js %]'
[%- sep = ',' -%]
[%- END -%]
[%- END -%] ];
[% nclass = nclass+1 %]
[% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment