Commit 456d1652 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix javascript callbacks on form submission

parent 394c42ae
...@@ -1153,6 +1153,7 @@ EOF; ...@@ -1153,6 +1153,7 @@ EOF;
if (!preg_match('/^[a-zA-Z][a-zA-Z0-9_]*$/', $name)) { if (!preg_match('/^[a-zA-Z][a-zA-Z0-9_]*$/', $name)) {
throw new PieformException("'$name' is not a valid javascript callback name"); throw new PieformException("'$name' is not a valid javascript callback name");
} }
return $name;
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment