We no longer read invalid tags or lone tags.
This commit is contained in:
parent
635f580ba6
commit
89473d417c
@ -163,6 +163,12 @@ public:
|
|||||||
if (data[0]=='<') {
|
if (data[0]=='<') {
|
||||||
//Beginning of XML tag.
|
//Beginning of XML tag.
|
||||||
accumulator=data;
|
accumulator=data;
|
||||||
|
if(accumulator.length()>1&&accumulator.at(1)=='/'){
|
||||||
|
accumulator=""; //Restart because this is an end tag.
|
||||||
|
}
|
||||||
|
if(accumulator.length()>1&&accumulator.find('>')!=std::string::npos){
|
||||||
|
accumulator=""; //Restart because this tag has nothing in it!
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//Start reading in data for this layer.
|
//Start reading in data for this layer.
|
||||||
std::vector<int>rowData;
|
std::vector<int>rowData;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_PATCH 0
|
#define VERSION_PATCH 0
|
||||||
#define VERSION_BUILD 98
|
#define VERSION_BUILD 100
|
||||||
|
|
||||||
#define stringify(a) stringify_(a)
|
#define stringify(a) stringify_(a)
|
||||||
#define stringify_(a) #a
|
#define stringify_(a) #a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user