mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
Add route to handle default browser favicon.ico request
This commit is contained in:
parent
3c27fa92ca
commit
0ce63f3d1e
1 changed files with 12 additions and 0 deletions
|
@ -262,6 +262,18 @@ function handle_static_file($request) {
|
||||||
}
|
}
|
||||||
LSurl :: add_handler('#^(?P<type>image|css|js)/(?P<file>[^/]+)$#', 'handle_static_file', false);
|
LSurl :: add_handler('#^(?P<type>image|css|js)/(?P<file>[^/]+)$#', 'handle_static_file', false);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Handle default browser favicon.ico request
|
||||||
|
*
|
||||||
|
* @param[in] $request LSurlRequest The request
|
||||||
|
*
|
||||||
|
* @retval void
|
||||||
|
*/
|
||||||
|
function handle_favicon_ico_view($request) {
|
||||||
|
LSurl :: redirect('image/favicon');
|
||||||
|
}
|
||||||
|
LSurl :: add_handler('#^favicon\.ico#', 'handle_favicon_ico_view', false);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Handle libs file request
|
* Handle libs file request
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue