1. Zhang Huangbin
  2. iredapd

Source

iredapd / plugins / sql_alias_access_policy.py

Diff from to

File plugins/sql_alias_access_policy.py

  • Ignore whitespace
     sql = '''SELECT accesspolicy, goto, moderators
             FROM alias
             WHERE
-                address=%s
+                address='%s'
                 AND address <> goto
-                AND domain=%s
+                AND domain='%s'
                 AND active=1
             LIMIT 1
     ''' % (recipient, recipient_domain)