summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/lib/aurjson.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 1548232..9097035 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -119,7 +119,7 @@ class AurJSON {
if (isset($http_data['callback'])) {
$callback = $http_data['callback'];
- if (!preg_match('/^[a-zA-Z0-9().]{1,128}$/D', $callback)) {
+ if (!preg_match('/^[a-zA-Z0-9()_.]{1,128}$/D', $callback)) {
return $this->json_error('Invalid callback name.');
}
header('content-type: text/javascript');