From 6e641e425a5d3a1aa1d81e671e6ee474a2969548 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Sun, 22 Mar 2020 01:57:23 +0100 Subject: [PATCH] Trim spaces and tabs from input (#222) --- web_permissions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_permissions.lua b/web_permissions.lua index 1065013..ef6b610 100644 --- a/web_permissions.lua +++ b/web_permissions.lua @@ -101,7 +101,7 @@ local function ShowAddGroupPage(a_Request) end -- Add the group: - cRankManager:AddGroup(GroupName) + cRankManager:AddGroup(TrimString(GroupName)) -- Redirect the user: return "

Group created. Return to group list.

" @@ -122,7 +122,7 @@ local function ShowAddPermissionPage(a_Request) end -- Add the permission: - cRankManager:AddPermissionToGroup(Permission, GroupName) + cRankManager:AddPermissionToGroup(TrimString(Permission), GroupName) -- Redirect the user: return @@ -148,7 +148,7 @@ local function ShowAddRestrictionPage(a_Request) end -- Add the permission: - cRankManager:AddRestrictionToGroup(Restriction, GroupName) + cRankManager:AddRestrictionToGroup(TrimString(Restriction), GroupName) -- Redirect the user: return