From 5d5b61d95654e6e550e538a42e30fc9b4d4fe008 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 28 Apr 2016 11:48:03 +0000 Subject: [PATCH] Wiki syntax: allow white spaces in the specification of a link to an object (form: [[:]]) SVN:trunk[4016] --- core/attributedef.class.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index b75817ad7..cbe5e1b60 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -2380,8 +2380,8 @@ class AttributeText extends AttributeString { foreach($aAllMatches as $iPos => $aMatches) { - $sClass = $aMatches[1]; - $sName = $aMatches[2]; + $sClass = trim($aMatches[1]); + $sName = trim($aMatches[2]); if (MetaModel::IsValidClass($sClass)) { @@ -3842,7 +3842,7 @@ EOF $sFormat = static::GetFormat(); $aMappings = static::GetFormatMapping(); $sSpecialChars = '.?*$^()[]/'; // Characters having a special meaning in a regular expression, must be escaped by prepending a backslash - $sResult = '^'; + $sResult = '^'; $bEscaping = false; for($i=0; $i < strlen($sFormat); $i++)