Add check for drop into itself for issue1948

This commit is contained in:
Cédric Krier committed 2011-04-15 17:09:10 +02:00
1 parent 2ab9b49712
commit fb02ad5e68
1 file changed
+2
+2
View File
@@ -560,6 +560,8 @@ class ViewList(ParserView):
def check_recursion(from_, to):
if not from_ or not to:
return True
if from_ == to:
return False
length = min(len(from_), len(to))
if len(from_) < len(to) and from_[:length] == to[:length]:
return False