diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-09 09:22:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-09 09:22:40 +0000 |
commit | 64b100d19ace2c9b82ced4438036a64a69eda3c3 (patch) | |
tree | 36a433e7cd27810edb315c2fc79e764742019b54 /includes/file.inc | |
parent | 0830efe9a6c056d20a286880733fedcbd28b62fa (diff) | |
download | brdo-64b100d19ace2c9b82ced4438036a64a69eda3c3.tar.gz brdo-64b100d19ace2c9b82ced4438036a64a69eda3c3.tar.bz2 |
- Patch #13260 by UnConeD: watchdog module improvements.
We added a 'severity' column to watchdog():
watchdog($type, $message, $link) --> watchdog($type, $message, $severity, $link);
* Specify a severity in case you are reporting a warning or error.
* The $link-parameter is now the fourth parameter instead of the third.
TODO: document this in the upgrade guide.
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/file.inc b/includes/file.inc index 7c467ad17..39aa16fb6 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -358,7 +358,7 @@ function file_save_upload($source, $dest = 0, $replace = FILE_EXISTS_RENAME) { } if (!user_access('bypass input data check') && !valid_input_data($file)) { - watchdog('error', t('Possible exploit abuse: invalid data.')); + watchdog('security', t('Possible exploit abuse: invalid data.'), WATCHDOG_WARNING); drupal_set_message(t('File upload failed: invalid data.'), 'error'); return 0; } @@ -402,7 +402,7 @@ function file_save_upload($source, $dest = 0, $replace = FILE_EXISTS_RENAME) { */ function file_save_data($data, $dest, $replace = FILE_EXISTS_RENAME) { if (!user_access('bypass input data check') && !valid_input_data($data)) { - watchdog('error', t('Possible exploit abuse: invalid data.')); + watchdog('security', t('Possible exploit abuse: invalid data.'), WATCHDOG_WARNING); drupal_set_message(t('File upload failed: invalid data.'), 'error'); return 0; } |