Permalink
Browse files

MDL-36433 Forms lib - Added dash escaping to validation script getter.

  • Loading branch information...
1 parent 8ccaa29 commit ed608e7ad4e76da5c3b6d0df8179191446d2e6a9 @itamart itamart committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formslib.php
View
@@ -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 .= '

0 comments on commit ed608e7

Please sign in to comment.