summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2009-01-28 20:54:09 (UTC)
committer Michael Krelin <hacker@klever.net>2009-01-28 20:56:27 (UTC)
commitbfd588fc4793fc22834845eeb172b8e217c80dd1 (patch) (side-by-side diff)
treeef484f6175c38c50f413e23e79fb5eca47544062
parent485a0816b78fcf53a717e8e7cbeabee0b83091e7 (diff)
downloadlibopkele-bfd588fc4793fc22834845eeb172b8e217c80dd1.zip
libopkele-bfd588fc4793fc22834845eeb172b8e217c80dd1.tar.gz
libopkele-bfd588fc4793fc22834845eeb172b8e217c80dd1.tar.bz2
XRD discovery fix.
Added omitted popping of the XRD element out of stack when it ends. Thanks to our usual suspect - Joseph for spotting it ;-) Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--lib/discovery.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/discovery.cc b/lib/discovery.cc
index f8a3988..26f3eed 100644
--- a/lib/discovery.cc
+++ b/lib/discovery.cc
@@ -481,12 +481,16 @@ namespace opkele {
}else if(is_qelement(n,NSURI_XRD "\tExpires")) {
if(!xrd) {
skipping=-1;
}else{
xrd->expires = util::w3c_to_time(cdata_buf);
}
+ }else if(is_qelement(n,NSURI_XRD "\tXRD")) {
+ assert(!pt_stack.empty());
+ assert(pt_stack.back()==(NSURI_XRD "\tXRD"));
+ pt_stack.pop_back();
}else if((xmode&xmode_html) && is_element(n,"head")) {
skipping = -1;
}
cdata = 0;
}
void character_data(const XML_Char *s,int l) {