Make php_filter_unsafe_raw actually strip stuff
commit86f18b92a31a03d121d7c11a08d0f53c60479503
authorFred Emmott <fredemmott@fb.com>
Mon, 19 May 2014 22:10:16 +0000 (19 15:10 -0700)
committerJoelMarcey <joelm@fb.com>
Tue, 20 May 2014 18:48:44 +0000 (20 11:48 -0700)
tree9e2885aa95e3787d8f17b80615a089905176e586
parent21f05254e6e9b46afc327d97993abd2b69b42ed9
Make php_filter_unsafe_raw actually strip stuff

Summary: php_filter_strip() doesn't mutate its' arguments, so calling it and ignoring the result was rather pointless.

Fixes facebook/hhvm#2337

Reviewed By: @ptarjan

Differential Revision: D1337641
hphp/runtime/ext/filter/sanitizing_filters.cpp
hphp/test/slow/ext_filter/filter_unsafe_raw_strip.php [new file with mode: 0644]
hphp/test/slow/ext_filter/filter_unsafe_raw_strip.php.expect [new file with mode: 0644]