mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed bug in conditional attribute processing in find form
This commit is contained in:
parent
e38e91da5f
commit
e955bde7eb
@ -9351,6 +9351,10 @@ void attrib_from_param(int n_attr, char attrib[MAX_N_ATTR][NAME_LENGTH]) {
|
|||||||
strlcpy(attrib[i], getparam(ua), NAME_LENGTH);
|
strlcpy(attrib[i], getparam(ua), NAME_LENGTH);
|
||||||
else
|
else
|
||||||
attrib[i][0] = 0;
|
attrib[i][0] = 0;
|
||||||
|
if (attrib[i][0] == '^' && attrib[i][strlen(attrib[i])-1] == '$') {
|
||||||
|
memmove(&attrib[i][0], &attrib[i][1], strlen(attrib[i]));
|
||||||
|
attrib[i][strlen(attrib[i])-1] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user