The result of a variable escaped using the Price filter does not need to be html filtered, it is always a float.
Created attachment 79614 [details] [review] Bug 21454: Update the tests
Created attachment 79615 [details] [review] Bug 21454: Do not require html filter on Price Test plan: - Apply first patch - Confirm that tests is failing (t/template_filters.t) - Apply second patch - Confirm that tests return green - Apply last patch - Confirm that prices are displayed correctly QA step: Edit a template and add the following 2 lines: [% SET p = '<script>alert("foo");</script>' %] [% x | $Price %] => Display '0.00'
Created attachment 79616 [details] [review] Bug 21454: Remove html filter for Price filtered variables Generated with: perl -p -i -e 's/\|\s?\$Price\s?\|\s?html\s%]/| \$Price %]/g' **/*.tt **/*.inc
Created attachment 79703 [details] [review] Bug 21454: Update the tests Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Created attachment 79704 [details] [review] Bug 21454: Do not require html filter on Price Test plan: - Apply first patch - Confirm that tests is failing (t/template_filters.t) - Apply second patch - Confirm that tests return green - Apply last patch - Confirm that prices are displayed correctly QA step: Edit a template and add the following 2 lines: [% SET p = '<script>alert("foo");</script>' %] [% x | $Price %] => Display '0.00' Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Created attachment 79705 [details] [review] Bug 21454: Remove html filter for Price filtered variables Generated with: perl -p -i -e 's/\|\s?\$Price\s?\|\s?html\s%]/| \$Price %]/g' **/*.tt **/*.inc Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Moving to PQA - reviewed, changes all make sense
Awesome work all! Pushed to master for 18.11
Dependency not in 18.05.x series.