"throw assertion failed exception (with trace), if redirect fails because output already started"

This commit is contained in:
Ralf Becker 2009-11-17 14:56:57 +00:00
parent e40d0caaa3
commit 4181ddaecf

View File

@ -441,6 +441,10 @@ class egw extends egw_minimal
}
else
{
if (headers_sent($file,$line))
{
throw new egw_exception_assertion_failed(__METHOD__."('".htmlspecialchars($url)."') can NOT redirect, output already started at $file line $line!");
}
Header("Location: $url");
print("\n\n");
}