diff --git a/index.php b/index.php index 4a3c3332d0..e3fcc8e263 100644 --- a/index.php +++ b/index.php @@ -51,7 +51,7 @@ error_reporting(!empty($db_show_debug) ? E_ALL : E_ALL & ~E_DEPRECATED); // Ensure there are no trailing slashes in these variables. -foreach (array('boardurl', 'boarddir', 'sourcedir', 'packagesdir', 'taskddir', 'cachedir') as $variable) +foreach (array('boardurl', 'boarddir', 'sourcedir', 'packagesdir', 'tasksdir', 'cachedir') as $variable) if (!empty($GLOBALS[$variable])) $GLOBALS[$variable] = rtrim($GLOBALS[$variable], "\\/");