mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-36433 Forms lib - Added dash escaping to validation script getter.
This commit is contained in:
parent
8ccaa296fa
commit
ed608e7ad4
@ -1870,7 +1870,7 @@ function qf_errorHandler(element, _qfMsg) {
|
||||
list($jsArr,$element)=$jsandelement;
|
||||
//end of fix
|
||||
$escapedElementName = preg_replace_callback(
|
||||
'/[_\[\]]/',
|
||||
'/[_\[\]-]/',
|
||||
create_function('$matches', 'return sprintf("_%2x",ord($matches[0]));'),
|
||||
$elementName);
|
||||
$js .= '
|
||||
|
Loading…
x
Reference in New Issue
Block a user