소스 검색

Wiki syntax: allow white spaces in the specification of a link to an object (form: [[<class>:<friendlyname>]])

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4016 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 년 전
부모
커밋
a1a0fc9425
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      core/attributedef.class.inc.php

+ 3 - 3
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++)