Commit a2cbc7f6 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

aurjson: Allow underscores in JSONP callback names

Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 8c87b1df
......@@ -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');
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