From acca9a3d3af26f4559fa051fb819df91ab9ffbcf Mon Sep 17 00:00:00 2001
From: redray <redray@ispconfig3>
Date: Mon, 22 Dec 2008 06:05:06 -0500
Subject: [PATCH] AUto-Subdomain works now with Redirect.

---
 interface/lib/classes/tpl_cache.inc.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/interface/lib/classes/tpl_cache.inc.php b/interface/lib/classes/tpl_cache.inc.php
index a4c6eec..49c5e5d 100644
--- a/interface/lib/classes/tpl_cache.inc.php
+++ b/interface/lib/classes/tpl_cache.inc.php
@@ -82,7 +82,7 @@
      * @return boolean
      */
     function setCacheExtension($str = null) {
-        if ($str == null || !ereg('^[a-z0-9]+$', strtolower($str))) return false;
+        if ($str == null || !preg_match('/^[a-z0-9]+$/', strtolower($str))) return false;
         $this->OPTIONS['CACHE_EXTENSION'] = strtolower($str);
         return true;
     }

--
Gitblit v1.9.1