Skip to content
Permalink
Browse files

Avoid infinite loop in quoteString

  • Loading branch information
strk committed Jun 6, 2017
1 parent 35f7839 commit c36727ddef161b656890bd958d3286505c4e261f
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_plugins/connector.py
@@ -196,7 +196,7 @@ def quoteId(self, identifier):
@classmethod
def quoteString(self, txt):
""" make the string safe - replace ' with '' """
if hasattr(txt, '__iter__'):
if hasattr(txt, '__iter__') and not isinstance(txt, str):
txts = list()
for i in txt:
if i is None:

0 comments on commit c36727d

Please sign in to comment.
You can’t perform that action at this time.