Skip to content

Commit

Permalink
jsonp callback regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Mashape committed Feb 15, 2011
1 parent 9d107cd commit 47aaaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mashape/methods/handler.php
Expand Up @@ -50,7 +50,7 @@ private static function getAllParams($source) {
}

private static function validateCallback($callback) {
if (preg_match("/^\w+$/", $callback)) {
if (preg_match("/^(\w\.?_?)+$/", $callback)) {
return true;
} else {
return false;
Expand Down

0 comments on commit 47aaaba

Please sign in to comment.