diff options
| author | Christopher Guindon | 2019-10-10 16:33:55 +0000 |
|---|---|---|
| committer | Denis Roy | 2019-10-10 17:12:23 +0000 |
| commit | b885a69628cb63222602db069aa8a695f0c033ce (patch) | |
| tree | 85dc0fbac83641ffbe84b898d7983b1c0de511bd | |
| parent | 21707d166f1dc9c05ff246c13258b299d6b8fb34 (diff) | |
| download | eclipse.org-common-b885a69628cb63222602db069aa8a695f0c033ce.tar.gz eclipse.org-common-b885a69628cb63222602db069aa8a695f0c033ce.tar.xz eclipse.org-common-b885a69628cb63222602db069aa8a695f0c033ce.zip | |
Bug 551563 - Disable caching when a SQL error exists
Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
| -rw-r--r-- | system/app.class.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/app.class.php b/system/app.class.php index 41b9cfc9..0e5cbfec 100644 --- a/system/app.class.php +++ b/system/app.class.php @@ -2096,6 +2096,13 @@ class App { if ($this->devmode || $this->logsql) { $this->SQLBacktrace(); } + # capture and flush the buffer + $html = ob_get_contents(); + ob_end_clean(); + header('HTTP/1.1 500 Internal Server Error'); + + # Send the error to the screen. This may not be desirable + echo $html; exit(); } } |
