HFP-1871 Fix sanitization of containsMath

HFP-2095-Fix-table-styling
Oliver Tacke 2018-07-30 14:52:36 +02:00
parent 9314c55994
commit d068b82ff5
1 changed files with 1 additions and 1 deletions

View File

@ -2046,7 +2046,7 @@ class H5PCore {
* @return {boolean} True, if params contain math.
*/
private function containsMath ($params, $mathPattern, $found = false) {
if (!isset($mathPattern) == NULL) {
if (!isset($mathPattern)) {
$mathPattern = '/\$\$.+\$\$|\\\[.+\\\]|\\\(.+\\\)/';
}
foreach($params as $property => $value) {