This website works better with JavaScript.
Home
Help
Sign In
ben
/
mwparserfromhell
mirror of
https://github.com/earwig/mwparserfromhell
Watch
1
Star
1
Fork
0
Code
Releases
24
Activity
Browse Source
Forgot to check numeric/hexadecimal entities for string chars.
tags/v0.2
Ben Kurtovic
12 years ago
parent
a1e6dfcef6
commit
0e78571672
1 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
mwparserfromhell/parser/tokenizer.c
+ 8
- 0
mwparserfromhell/parser/tokenizer.c
View File
@@ -1045,6 +1045,14 @@ Tokenizer_really_parse_entity(Tokenizer* self)
if (this == *MARKERS[j])
FAIL_ROUTE_AND_EXIT()
}
j = 0;
while (1) {
if (!valid[j])
FAIL_ROUTE_AND_EXIT()
if (this == valid[j])
break;
j++;
}
text[i] = this;
self->head++;
i++;
Write
Preview
Loading…
Cancel
Save