Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ed608e7ad4e76da5c3b6d0df8179191446d2e6a9 1 parent 8ccaa29
Itamar Tzadok itamart authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/formslib.php
2  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 .= '
Please sign in to comment.
Something went wrong with that request. Please try again.