Check return value of preg_match in Sanitizer.php
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 21 Feb 2015 09:37:31 +0000 (10:37 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 2 Apr 2015 17:49:45 +0000 (17:49 +0000)
commitbc2d89c66c324fc765284f0ea8568f319472d080
tree915ded7f5b0b76d27c5ce0ad06837c15e24ac535
parent08762b02deb017e53c3d67a8b3f8e983758cb67f
Check return value of preg_match in Sanitizer.php

preg_match returns bool to indicate if $regs contains content, check
that before using the array.

Bug: T75487
Change-Id: Idca50feb170e35ca25e9874674f5a4091748052a
includes/Sanitizer.php