PHP preg_replace segfault fixed

So I finally fixed the issue here, by replacing

$data = preg_replace(’/ ‘. trim($attrib) .’=(\w|\s|=|-|:|;|\/|\.|\?|&|,|#|!|\(|\)|\+|{|})*/i’, ”, $data);

with

$data = preg_replace(’/ ‘. trim($attrib) .’=[\w\s=:;\/.?&,#!()\+{}-]*/i’, ”, $data);

Back to work I go.

Bookmark and Share

Leave a Reply