瀏覽代碼

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

Loading…
取消
儲存