mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aurjson: Allow underscores in JSONP callback names
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
8c87b1df0c
commit
a2cbc7f646
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue