From 0fecd860e2944546bda13e8ab9d867d31b356dba Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Thu, 28 Jan 2016 12:32:06 -0500 Subject: [PATCH] Use URL of caller instead of just 'Internal API' --- internal-api/core/database_mysqli.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal-api/core/database_mysqli.inc.php b/internal-api/core/database_mysqli.inc.php index 7cc8d67f..b7b5a11e 100755 --- a/internal-api/core/database_mysqli.inc.php +++ b/internal-api/core/database_mysqli.inc.php @@ -177,7 +177,7 @@ function hesk_dbQuery($query) { $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'); print_error($hesklang['cant_sql'], $message); die(http_response_code(500));