Permalink
Browse files

jsonp callback regex

  • Loading branch information...
Mashape
Mashape committed Feb 15, 2011
1 parent 9d107cd commit 47aaabac1ddc8970c065a622a8b0137e265d0c36
Showing with 1 addition and 1 deletion.
  1. +1 −1 mashape/methods/handler.php
@@ -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;

0 comments on commit 47aaaba

Please sign in to comment.