summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2011-03-01 11:18:34 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2011-03-01 11:18:34 -0700
commitc84876040a6669f5cb01c3772e861ba2084110f5 (patch)
treec6b4afb8dd8eda8580b8f3136ee98dcd8ba8f7c6 /usr
parent8b19f4a7272344fd3bf987cd160f23e9bc93c2d2 (diff)
downloadpfsense-c84876040a6669f5cb01c3772e861ba2084110f5.zip
pfsense-c84876040a6669f5cb01c3772e861ba2084110f5.tar.gz
Use the call to basename to remove the extension rather than trim, since trim takes a list of characters, not the exact string to remove. Suggested by http://forum.pfsense.org/index.php/topic,32967.0.html
Diffstat (limited to 'usr')
-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 e4a7a95..97c7111 100755
--- a/usr/local/www/head.inc
+++ b/usr/local/www/head.inc
@@ -62,7 +62,7 @@ $pagetitle = gentitle( $pgtitle );
* Coded by: Erik Kristensen
*/
- $dir = trim(basename($_SERVER["SCRIPT_FILENAME"]), '.php');
+ $dir = trim(basename($_SERVER["SCRIPT_FILENAME"], '.php'));
$path = "{$g['www_path']}/javascript/" . $dir . "/";
if (is_dir($path)) {
if ($dh = opendir($path)) {
OpenPOWER on IntegriCloud