From 6795bd7181746fc91975f6df7b25f1c844348a23 Mon Sep 17 00:00:00 2001
From: Tom Lake <tswsl1989@sucs.org>
Date: Tue, 28 Jun 2011 14:46:16 +0000
Subject: [PATCH] Replace ereg with preg_match (ereg is deprecated in PHP 5.3)

---
 htdocs/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/index.php b/htdocs/index.php
index 4630ecc..d6456b0 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -150,7 +150,7 @@ $smarty->assign("user_messages", $messages);
 // Render the results
 if (!(isset($no_template)) || (!$no_template)) {
 // Send appropriate Content-Type
-        if (ereg('application/xhtml\+xml', @$_SERVER['HTTP_ACCEPT'])) {
+        if (preg_match('#application/xhtml\+xml#', @$_SERVER['HTTP_ACCEPT'])) {
                 header('Content-Type: application/xhtml+xml');
                 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
         } else {
-- 
GitLab