# HG changeset patch # User Kim Alvefur # Date 1407244654 -7200 # Node ID 099583539e2c9b623abb591880809d62e8d7ee50 # Parent db870913e1cf15bb2e49b46ba752e8168371a05b mod_auth_ldap: Remove excess backslashes from escape pattern diff -r db870913e1cf -r 099583539e2c mod_auth_ldap/mod_auth_ldap.lua --- a/mod_auth_ldap/mod_auth_ldap.lua Wed Jul 30 21:58:56 2014 +0200 +++ b/mod_auth_ldap/mod_auth_ldap.lua Tue Aug 05 15:17:34 2014 +0200 @@ -2,7 +2,7 @@ local new_sasl = require "util.sasl".new; local lualdap = require "lualdap"; -local function ldap_filter_escape(s) return (s:gsub("[\\*\\(\\)\\\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end +local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end -- Config options local ldap_server = module:get_option_string("ldap_server", "localhost");