From 5cae58f38e304f67b5ac9c4cb6f51751f19d6c30 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 27 Nov 2003 10:15:39 +0000 Subject: [PATCH] Fixed bug with deny/allow commands in other languages SVN revision: 630 --- src/elogd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index d2ab2ad9..7df6ff7b 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.159 2003/11/27 10:15:39 midas + Fixed bug with deny/allow commands in other languages + Revision 1.158 2003/11/20 16:36:05 midas Added check_config_file() @@ -8403,7 +8406,7 @@ int i, n; return TRUE; /* check for deny */ - sprintf(str, "Deny %s", command); + sprintf(str, "Deny %s", unloc(command)); if (getcfg(lbs->name, str, users)) { /* check if current user in list */ @@ -8417,7 +8420,7 @@ int i, n; } /* check admin command */ - if (equal_ustring(command, "Admin")) + if (equal_ustring(command, loc("Admin"))) { if (getcfg(lbs->name, "Admin user", str)) { @@ -8429,7 +8432,7 @@ int i, n; } /* check for allow */ - sprintf(str, "Allow %s", command); + sprintf(str, "Allow %s", unloc(command)); if (!getcfg(lbs->name, str, users)) return TRUE;