summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/rdhtml.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-08-15 13:15:34 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-08-15 13:15:34 +0200
commit39321532992f0705f662fd63e93186da309c3a47 (patch)
tree8ee85b0632599a7510c4099866a81e5f590c8d79 /sys/src/cmd/mothra/rdhtml.c
parent21b5efe9627ea59b06015f5229c069f346535704 (diff)
mothra: handle misplaced trailing quotes
Diffstat (limited to 'sys/src/cmd/mothra/rdhtml.c')
-rw-r--r--sys/src/cmd/mothra/rdhtml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c
index 7bcf7367b..32b327aff 100644
--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -487,8 +487,11 @@ int pl_gettag(Hglob *g){
q = c;
else if(q == c)
q = 0;
- } else if(c == ETAG && q != '\'' && q != '"')
+ }
+ else if(c == ETAG && q != '\'' && q != '"')
break;
+ else if(q == '=' && c != ' ' && c != '\t' && c != '\n')
+ q = 0;
if(tokp < &g->token[NTOKEN-UTFmax-1])
tokp += lrunetochar(tokp, c);
}