From 483fd06037f109ea57675c8db60e380b8f4f7cb9 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Tue, 16 Feb 2010 02:12:07 +0000 Subject: [PATCH] MINOR make static caching smarter around cacheSubdirs git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99076 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- static-main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static-main.php b/static-main.php index 8d1395763..313d75d78 100644 --- a/static-main.php +++ b/static-main.php @@ -21,7 +21,7 @@ date_default_timezone_set('Pacific/Auckland'); if ($cacheOn && empty($_COOKIE['bypassStaticCache'])) { if (isset($_GET['cacheSubdir']) && !preg_match('/[^a-zA-Z0-9\-_]/', $_GET['cacheSubdir'])) { - $cacheDir = $_GET['cacheSubdir']; + $cacheDir = $_GET['cacheSubdir'].'/'; } else if (file_exists($hostmapLocation)) { include_once $hostmapLocation;