From c6be16d9ad742ed523bbf08020a0dca454e6f901 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Fri, 23 Jan 2004 15:31:29 +0000
Subject: [PATCH] - Patch #5351 by Kyber: fixed bug in field_get().

---
 includes/common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/common.inc b/includes/common.inc
index 72a5ce667736..dfc25c013826 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1054,7 +1054,7 @@ function l($text, $url, $attributes = array(), $query = NULL, $fragment = NULL)
 }
 
 function field_get($string, $name) {
-  ereg(",?$name=([^,]+)", ", $string", $regs);
+  ereg(",$name=([^,]+)", ",$string", $regs);
   return $regs[1];
 }
 
-- 
GitLab