Permalink
Browse files

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

  • Loading branch information...
1 parent b0c8730 commit d87a55fc2b83f8188df7efc6ce642e64b7ef5780 @itamart itamart committed with Sam Hemelryk Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formslib.php
View
@@ -1893,7 +1893,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 d87a55f

Please sign in to comment.