ソースを参照

When searching for an opening tag, verify that the character

after the tag is whitespace, '/' or '>'.  This allows the
ConfigurationElement to differentiate between <elem> and <elem1>.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@73 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 9年前
コミット
aae5c9ea10
1個のファイルの変更5行の追加0行の削除
  1. 5
    0
      configuration.cpp

+ 5
- 0
configuration.cpp ファイルの表示

@@ -718,6 +718,11 @@ bool ConfigurationElement::interpret(ConfigurationData& Data) {
return false; // No-Match means we are not it.
}
} // If the name checks out then
if (!isspace(Data.Data(Index + myName.length())) && // Next character must be whitespace
(Data.Data(Index + myName.length()) != '/') && // or closing of the tag.
(Data.Data(Index + myName.length()) != '>') ) {
return false;
}
Index += myName.length(); // move the Index past our name.

// At this point we have found ourselves so we will activate and interpret

読み込み中…
キャンセル
保存