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

This commit is contained in:
Itamar Tzadok 2012-11-14 01:03:14 -05:00
parent 8ccaa296fa
commit ed608e7ad4

View File

@ -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 .= '