Use URL of caller instead of just 'Internal API'
This commit is contained in:
parent
eed4e4392a
commit
0fecd860e2
@ -177,7 +177,7 @@ function hesk_dbQuery($query)
|
|||||||
{
|
{
|
||||||
$message = $hesklang['contact_webmaster'] . $hesk_settings['webmaster_email'];
|
$message = $hesklang['contact_webmaster'] . $hesk_settings['webmaster_email'];
|
||||||
}
|
}
|
||||||
mfh_log_error('Internal API', $message, $_SESSION['id']);
|
mfh_log_error($_SERVER['HTTP_REFERER'], $message, $_SESSION['id']);
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
print_error($hesklang['cant_sql'], $message);
|
print_error($hesklang['cant_sql'], $message);
|
||||||
die(http_response_code(500));
|
die(http_response_code(500));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user