Changeset

2774:41565a743cad

mod_auth_ldap: Split long line into many [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 26 Sep 2017 12:35:08 +0200
parents 2773:7a4e8dbbd30d
children 2775:8407137c0a3b
files mod_auth_ldap/mod_auth_ldap.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_ldap/mod_auth_ldap.lua	Mon Sep 25 11:20:05 2017 +0100
+++ b/mod_auth_ldap/mod_auth_ldap.lua	Tue Sep 26 12:35:08 2017 +0200
@@ -3,7 +3,10 @@
 local jid_split = require "util.jid".split;
 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");