Skip to content

Commit

Permalink
MDL-36433 Forms lib - Added dash escaping to validation script getter.
Browse files Browse the repository at this point in the history
  • Loading branch information
itamart committed Nov 14, 2012
1 parent 8ccaa29 commit ed608e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formslib.php
Expand Up @@ -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 .= '
Expand Down

0 comments on commit ed608e7

Please sign in to comment.