summaryrefslogtreecommitdiffstats
path: root/usr/local/www/head.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-04-08 14:15:50 -0400
committerjim-p <jimp@pfsense.org>2011-04-08 14:15:50 -0400
commitac6651c9458a7e86d33535932f89b43568a05b91 (patch)
treea2b36b3c22870eaab4e14bde763391d4eff9202d /usr/local/www/head.inc
parentedf99ce40cf56c804e02b54a22f11e212b556c6a (diff)
downloadpfsense-ac6651c9458a7e86d33535932f89b43568a05b91.zip
pfsense-ac6651c9458a7e86d33535932f89b43568a05b91.tar.gz
Make sure a theme directory actually exists before blindly using it.
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-xusr/local/www/head.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc
index 97c7111..84ad1e3 100755
--- a/usr/local/www/head.inc
+++ b/usr/local/www/head.inc
@@ -7,7 +7,7 @@
* if user has selected a custom template, use it.
* otherwise default to pfsense tempalte
*/
-if($config['theme'] <> "")
+if($config['theme'] <> "" && (is_dir($g["www_path"].'/themes/'.$config['theme']))
$g['theme'] = $config['theme'];
else
$g['theme'] = "pfsense";
OpenPOWER on IntegriCloud