From a0c33bdbc4873210598acdccb292ff77fb6bf624 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 8 Apr 2014 00:42:04 +0200 Subject: [PATCH] fix handling of / as cgi prefix Signed-off-by: Felix Fietkau --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 38d023f..e89a99a 100644 --- a/main.c +++ b/main.c @@ -201,7 +201,7 @@ static void fixup_prefix(char *str) len = strlen(str) - 1; - while (len > 0 && str[len] == '/') + while (len >= 0 && str[len] == '/') len--; str[len + 1] = 0; -- 2.25.1