From f94a5cb87d10247c02faf93ca5c99d2de2a57c36 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Wed, 2 Apr 2003 23:13:47 +0000 Subject: Added user notification for post reporting, moved lang strings to lang_main, added CSS style for mcp_jumpbox git-svn-id: file:///svn/phpbb/trunk@3779 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acm/acm_file.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'phpBB/includes/acm/acm_file.php') diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php index 856170497e..883878b4b4 100644 --- a/phpBB/includes/acm/acm_file.php +++ b/phpBB/includes/acm/acm_file.php @@ -170,6 +170,9 @@ class acm { global $db, $phpEx; + // Remove extra spaces and tabs + $query = preg_replace('/[\n\r\s\t]+/', ' ', $query); + $filemtime = intval(@filemtime($this->cache_dir . md5($query) . '.' . $phpEx)); if (time() - $filemtime > $expire_time) { @@ -187,6 +190,10 @@ class acm function sql_save($query, $result) { global $db, $phpEx; + + // Remove extra spaces and tabs + $query = preg_replace('/[\n\r\s\t]+/', ' ', $query); + if ($fp = @fopen($this->cache_dir . md5($query) . '.' . $phpEx, 'wb')) { @flock($fp, LOCK_EX); -- cgit v1.2.1