From 10ac65b5094a3eb683c8d0ce83a6644be1cd2ab0 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 21 Oct 2004 22:21:13 +0000 Subject: [PATCH] Fix not finding trailing space as part of PATH_INFO env variable. NOTE: If you are using CGI with the Synchronet web server, it is STRONGLY reccomended that you update as soon as possible. --- src/sbbs3/websrvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 0ed12ff337..e3d816cc0f 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -1751,7 +1751,7 @@ static BOOL check_request(http_session_t * session) ,session->socket,path,root_dir); return(FALSE); } - if(stat(path,&sb)) { + if(stat(path,&sb) || IS_PATH_DELIM(*(lastchar(path)))) { /* Check if sneaky CGI script */ if(!check_extra_path(session,path)) { -- GitLab