Browse Source

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 years ago
parent
commit
aae5c9ea10
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      configuration.cpp

+ 5
- 0
configuration.cpp View File

@@ -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…
Cancel
Save