summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2012-09-16 19:11:39 +0200
committervlakoff <vlakoff@gmail.com>2012-09-16 19:11:39 +0200
commitb16dd29147fa8155cb9d9dadfb7c587aef81d772 (patch)
treefd1d2a13809897b7cd9b8ac3226cbe870a6d6a23
parent4a853e206fe36126594d4ea3fd415db00264187d (diff)
Minor change in Output cache file check
Won't change anything in practice, but robuster (and faster) if ever a cache file would be invalid
-rw-r--r--system/core/Output.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 9842f834d..847c61e3e 100644
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -552,7 +552,7 @@ class CI_Output {
fclose($fp);
// Strip out the embedded timestamp
- if ( ! preg_match('/\d+TS--->/', $cache, $match))
+ if ( ! preg_match('/^\d+TS--->/', $cache, $match))
{
return FALSE;
}