mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Ignore <tab>'s in config file correctly
SVN revision: 425
This commit is contained in:
parent
e5a0b5d12f
commit
f35c7464aa
13
src/elogd.c
13
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.36 2003/03/01 16:08:02 midas
|
||||||
|
Ignore <tab>'s in config file correctly
|
||||||
|
|
||||||
Revision 1.35 2003/02/28 15:21:00 midas
|
Revision 1.35 2003/02/28 15:21:00 midas
|
||||||
On 'restrict edit' check long_name only if short_name is not present
|
On 'restrict edit' check long_name only if short_name is not present
|
||||||
|
|
||||||
@ -1525,7 +1528,7 @@ int i;
|
|||||||
while (*p && *p != '=' && *p != '\n' && *p != '\r')
|
while (*p && *p != '=' && *p != '\n' && *p != '\r')
|
||||||
*pstr++ = *p++;
|
*pstr++ = *p++;
|
||||||
*pstr-- = 0;
|
*pstr-- = 0;
|
||||||
while (pstr > str && (*pstr == ' ' || *pstr == '='))
|
while (pstr > str && (*pstr == ' ' || *pstr == '\t' || *pstr == '='))
|
||||||
*pstr-- = 0;
|
*pstr-- = 0;
|
||||||
|
|
||||||
if (i == index)
|
if (i == index)
|
||||||
@ -1534,13 +1537,13 @@ int i;
|
|||||||
if (*p == '=')
|
if (*p == '=')
|
||||||
{
|
{
|
||||||
p++;
|
p++;
|
||||||
while (*p == ' ')
|
while (*p == ' ' || *p == '\t')
|
||||||
p++;
|
p++;
|
||||||
pstr = str;
|
pstr = str;
|
||||||
while (*p && *p != '\n' && *p != '\r')
|
while (*p && *p != '\n' && *p != '\r')
|
||||||
*pstr++ = *p++;
|
*pstr++ = *p++;
|
||||||
*pstr-- = 0;
|
*pstr-- = 0;
|
||||||
while (*pstr == ' ')
|
while (*pstr == ' ' || *pstr == '\t')
|
||||||
*pstr-- = 0;
|
*pstr-- = 0;
|
||||||
|
|
||||||
if (value)
|
if (value)
|
||||||
@ -1691,11 +1694,11 @@ static char old_language[256];
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
ptrans[n] = p + 1;
|
ptrans[n] = p + 1;
|
||||||
while (*ptrans[n] == ' ')
|
while (*ptrans[n] == ' ' || *ptrans[n] == '\t')
|
||||||
ptrans[n] ++;
|
ptrans[n] ++;
|
||||||
|
|
||||||
/* remove '=' and surrounding blanks */
|
/* remove '=' and surrounding blanks */
|
||||||
while (*p == '=' || *p == ' ')
|
while (*p == '=' || *p == ' ' || *p == '\t')
|
||||||
*p-- = 0;
|
*p-- = 0;
|
||||||
|
|
||||||
p = ptrans[n];
|
p = ptrans[n];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user