18
Okay opened the image.php file and added one line, updated to add the $ts at the beginning. And it made the site inaccessible.
le="color: #000000"><?php class MytsImage extends MyTextSanitizerExtension { function load(&$ts) { static $jsLoaded; $config = $this->loadConfig(dirname(__FILE__)); $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1 width=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img width=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[IMG]([^"()?&<>]*)[/IMG]/sU"; // Added for script driven images $ts->patterns[] = "/[img align=(left|right|center) width=([0-9]*)](.*)[/img]/sU"; $ts->patterns[] = "/[img width=([0-9]*) align=(left|right|center)](.*)[/img]/sU"; $ts->patterns[] = "/[img align=(left|right|center)](.*)[/img]/sU"; $ts->patterns[] = "/[img width=([0-9]*)](.*)[/img]/sU"; $ts->patterns[] = "/[img](.*)[/img]/sU"; $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";