Fix a couple of parser bugs.
This commit is contained in:
parent
e9701b59b1
commit
f6fb3b4a3a
@ -1638,7 +1638,7 @@ serve_unchanged (arg)
|
||||
&& strncmp (arg, name, cp - name) == 0)
|
||||
{
|
||||
timefield = strchr (cp + 1, '/') + 1;
|
||||
if (*timefield != '=')
|
||||
if (*timefield == '/')
|
||||
{
|
||||
cp = timefield + strlen (timefield);
|
||||
cp[1] = '\0';
|
||||
@ -1682,7 +1682,7 @@ serve_is_modified (arg)
|
||||
&& strncmp (arg, name, cp - name) == 0)
|
||||
{
|
||||
timefield = strchr (cp + 1, '/') + 1;
|
||||
if (!(timefield[0] == 'M' && timefield[1] == '/'))
|
||||
if (*timefield == '/')
|
||||
{
|
||||
cp = timefield + strlen (timefield);
|
||||
cp[1] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user