mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use readfile() instead of include for static files
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
2786c16bd5
commit
89b0fb8348
1 changed files with 4 additions and 4 deletions
|
@ -143,12 +143,12 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
case "/css/aur.css":
|
||||
case "/css/archnavbar/archnavbar.css":
|
||||
header("Content-Type: text/css");
|
||||
include "./$path";
|
||||
readfile("./$path");
|
||||
break;
|
||||
case "/css/archnavbar/archlogo.gif":
|
||||
case "/images/new.png":
|
||||
header("Content-Type: image/png");
|
||||
include "./$path";
|
||||
readfile("./$path");
|
||||
break;
|
||||
case "/css/archnavbar/archlogo.png":
|
||||
case "/images/AUR-logo-80.png":
|
||||
|
@ -158,11 +158,11 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
case "/images/titlelogo.png":
|
||||
case "/images/x.png":
|
||||
header("Content-Type: image/png");
|
||||
include "./$path";
|
||||
readfile("./$path");
|
||||
break;
|
||||
case "/js/bootstrap-typeahead.min.js":
|
||||
header("Content-Type: application/javascript");
|
||||
include "./$path";
|
||||
readfile("./$path");
|
||||
break;
|
||||
default:
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
|
|
Loading…
Add table
Reference in a new issue