summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-10-10 10:27:53 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-10-10 10:27:53 +0200
commit89b0fb83487be96daf7f84a582da62f7239e23f4 (patch)
tree61261108296380ee270d6e8d5a0ff4855af320e3 /web/html
parent2786c16bd5da05dafcb3c6f79f636bc03b9433b6 (diff)
downloadaurweb-89b0fb83487be96daf7f84a582da62f7239e23f4.tar.xz
Use readfile() instead of include for static files
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/index.php b/web/html/index.php
index e05b555..91d0222 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -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");