Commit 0ea4efe2 authored by Sven (Sbte)'s avatar Sven (Sbte) Committed by José Aliste
Browse files

Prevent crash of bibtex parser on quoted strings.

The callbacks are called with four parameters, not two.

See https://bugzilla.gnome.org/show_bug.cgi?id=662127
parent 9c3953f9
......@@ -261,7 +261,7 @@ class BibTeXParser(object):
if token.type == Token.QUOTE:
self._state = self._QUOTED_STRING_VALUE
def _on_quoted_string_value(self, token):
def _on_quoted_string_value(self, token, file, issue_handler):
if token.type == Token.TEXT:
self._constant.value = token.value
self._document.constants.append(self._constant)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment