Skip to content
Snippets Groups Projects
Commit ed197d6e authored by David Rothstein's avatar David Rothstein
Browse files

Issue #1587858 by apotek: Fixed AJAX alert dialogs respect neither...

Issue #1587858 by apotek: Fixed AJAX alert dialogs respect neither display_errors ini.php setting or $conf['error_level'] setting, exposing server info.
parent 399cf0a5
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ Drupal 7.15, xxxx-xx-xx (development version)
correctly.
- Fixed bug: Language detection by domain only worked on port 80.
- Fixed bug which prevented image styles from being deleted on PHP 5.4.
- Made Ajax alert dialogs respect error reporting settings.
Drupal 7.14 2012-05-02
----------------------
......
......@@ -230,8 +230,10 @@ function _drupal_log_error($error, $fatal = FALSE) {
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
if ($fatal) {
// When called from JavaScript, simply output the error message.
print t('%type: !message in %function (line %line of %file).', $error);
if (error_displayable($error)) {
// When called from JavaScript, simply output the error message.
print t('%type: !message in %function (line %line of %file).', $error);
}
exit;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment