FrozenNode / XssInput

A simple extension of the Laravel Input facade that mimics CodeIgniter's xss filtering
41 stars 20 forks source link

Made two of the regular expressions compatible with PHP 5.5+ #4

Closed benjaminkohl closed 10 years ago

benjaminkohl commented 10 years ago

The /e modifier was deprecated in PHP 5.5 and it is recommended to use preg_replace_callback instead. I found two (hopefully the only two) instances of the /e modifier being used in the security class and replaced them with preg_replace_callback() versions. This change will continue to work in PHP 5.3 as there is nothing new about how preg_replace_callback() is being used.

janhartigan commented 10 years ago

Cool didn't know about that change in 5.5. Thanks for the PR

benjaminkohl commented 10 years ago

No problem! Thanks for merging it.