mirror of https://github.com/BOINC/boinc.git
Do not allow page_head() to be called twice
error_page() calls page_head(), but there are instances of code that call error_page() having already called page_head() before, thus attempting to send headers twice and creating double page header. Fixes #2960
This commit is contained in:
parent
b7e0a11db6
commit
becd2eea9d
html/inc
|
@ -243,6 +243,10 @@ function page_head(
|
||||||
global $caching, $cache_control_extra, $did_page_head;
|
global $caching, $cache_control_extra, $did_page_head;
|
||||||
global $is_login_page, $fixed_navbar;
|
global $is_login_page, $fixed_navbar;
|
||||||
|
|
||||||
|
if ($did_page_head) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$did_page_head = true;
|
$did_page_head = true;
|
||||||
$url_base = url_base();
|
$url_base = url_base();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue