Browse Source

Fix unsafe context definitions.

tags/v0.3
Ben Kurtovic 11 years ago
parent
commit
bb4cf03e98
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mwparserfromhell/parser/tokenizer.c

+ 1
- 1
mwparserfromhell/parser/tokenizer.c View File

@@ -1881,7 +1881,7 @@ static PyObject*
Tokenizer_handle_end(Tokenizer* self, int context) Tokenizer_handle_end(Tokenizer* self, int context)
{ {
static int fail_contexts = (LC_TEMPLATE | LC_ARGUMENT | LC_WIKILINK | static int fail_contexts = (LC_TEMPLATE | LC_ARGUMENT | LC_WIKILINK |
LC_HEADING | LC_COMMENT);
LC_HEADING | LC_COMMENT | LC_TAG);
static int double_fail = (LC_TEMPLATE_PARAM_KEY | LC_TAG_CLOSE); static int double_fail = (LC_TEMPLATE_PARAM_KEY | LC_TAG_CLOSE);
PyObject *token, *text, *trash; PyObject *token, *text, *trash;
int single; int single;


Loading…
Cancel
Save