From 48cbec63fb09bdb6a135866e3de329e1cafaf904 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Tue, 19 Jun 2001 06:13:18 +0000 Subject: Allow '\' as a path delimiter (bug 29064) Patch Concept by r= jake@acutex.net --- CGI.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CGI.pl b/CGI.pl index 138e52414..efcf0c2ac 100644 --- a/CGI.pl +++ b/CGI.pl @@ -910,8 +910,8 @@ Content-type: text/html } if (!defined $nexturl || $nexturl eq "") { # Sets nexturl to be argv0, stripping everything up to and - # including the last slash. - $0 =~ m:[^/]*$:; + # including the last slash (or backslash on Windows). + $0 =~ m:[^/\\]*$:; $nexturl = $&; } my $method = "POST"; -- cgit v1.2.3-24-g4f1b