# HG changeset patch # User Sylvain Thénault # Date 1325589704 -3600 # Node ID 335b358c701769db7df04493ef47ab296275d60a # Parent 67b9b273b70da6b93855f1fbed030a7f63d5ff79 [rql, security] fix buggy rqlstr cleanup when some introduced snippet create an unresolvable query. Closes #2142041 diff -r 67b9b273b70d -r 335b358c7017 rqlrewrite.py --- a/rqlrewrite.py Tue Dec 20 19:05:55 2011 +0100 +++ b/rqlrewrite.py Tue Jan 03 12:21:44 2012 +0100 @@ -295,7 +295,7 @@ if parent is None: self.current_statement().remove_node(new, undefine=True) else: - parent.parent.replace(or_, or_.children[0]) + grandpa.replace(or_, parent) self._cleanup_inserted(new) raise else: