From c8512991ed2158aa907ee3a5dcf2e5c3b911f5a6 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 14 Sep 2011 20:29:42 -0400 Subject: [PATCH] fix hs (for real this time) --- modules/hs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hs.py b/modules/hs.py index 8add40f..338efab 100755 --- a/modules/hs.py +++ b/modules/hs.py @@ -31,7 +31,7 @@ def hs(phenny, input): results = RESULTS_URL.format(urlquote(q)) try: - s = search('(|(uupid={0})(mail={0})(cn={1}))'.format(q)) + s = search('(|(uupid={0})(mail={0})(cn={0}))'.format(q)) if not s: s = search('(|(uupid=*{0}*)(mail=*{0}*)(cn=*{1}*))'.format(q, '*'.join(q.split(' ')))) except ldap.FILTER_ERROR: