HFP-1871 Fix sanitization of containsMath
parent
9314c55994
commit
d068b82ff5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue