HFP-1871 Fix sanitization of containsMath
parent
9314c55994
commit
d068b82ff5
|
@ -2046,7 +2046,7 @@ class H5PCore {
|
||||||
* @return {boolean} True, if params contain math.
|
* @return {boolean} True, if params contain math.
|
||||||
*/
|
*/
|
||||||
private function containsMath ($params, $mathPattern, $found = false) {
|
private function containsMath ($params, $mathPattern, $found = false) {
|
||||||
if (!isset($mathPattern) == NULL) {
|
if (!isset($mathPattern)) {
|
||||||
$mathPattern = '/\$\$.+\$\$|\\\[.+\\\]|\\\(.+\\\)/';
|
$mathPattern = '/\$\$.+\$\$|\\\[.+\\\]|\\\(.+\\\)/';
|
||||||
}
|
}
|
||||||
foreach($params as $property => $value) {
|
foreach($params as $property => $value) {
|
||||||
|
|
Loading…
Reference in New Issue