Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 322965e24518c1890924c2859df0a8a6a2d4a1ee 1 parent d402e05
@itamart itamart authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/formslib.php
View
2  lib/formslib.php
@@ -1941,7 +1941,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 .= '
Please sign in to comment.
Something went wrong with that request. Please try again.