Ver código fonte

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 anos atrás
pai
commit
aae5c9ea10
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      configuration.cpp

+ 5
- 0
configuration.cpp Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar