From 43ce82d08efa41af2de48816dea550c03fa17b9a Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 30 May 2012 22:19:49 +0200 Subject: [PATCH] silently remove leading/trailing spaces --- utils/specialphrases.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/specialphrases.php b/utils/specialphrases.php index 28d55010..309c5253 100755 --- a/utils/specialphrases.php +++ b/utils/specialphrases.php @@ -42,9 +42,9 @@ { foreach($aMatches as $aMatch) { - $sLabel = $aMatch[1]; - $sClass = $aMatch[2]; - $sType = $aMatch[3]; + $sLabel = trim($aMatch[1]); + $sClass = trim($aMatch[2]); + $sType = trim($aMatch[3]); # hack around a bug where building=yes was imported with # quotes into the wiki $sType = preg_replace('/"/', '', $sType);