mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
"throw assertion failed exception (with trace), if redirect fails because output already started"
This commit is contained in:
parent
e40d0caaa3
commit
4181ddaecf
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user