MDL-36433 Forms lib - Added dash escaping to validation script getter.
This commit is contained in:
committed by
Sam Hemelryk
parent
b0c87306a6
commit
d87a55fc2b
+1
-1
@@ -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 .= '
|
||||
|
||||
Reference in New Issue
Block a user