Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Guindon2019-10-10 16:33:55 +0000
committerDenis Roy2019-10-10 17:12:23 +0000
commitb885a69628cb63222602db069aa8a695f0c033ce (patch)
tree85dc0fbac83641ffbe84b898d7983b1c0de511bd
parent21707d166f1dc9c05ff246c13258b299d6b8fb34 (diff)
downloadeclipse.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.php7
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();
}
}

Back to the top