From: jake%acutex.net <> Date: Tue, 19 Jun 2001 06:13:18 +0000 (+0000) Subject: Allow '\' as a path delimiter (bug 29064) X-Git-Tag: bugzilla-2.14~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48cbec63fb09bdb6a135866e3de329e1cafaf904;p=thirdparty%2Fbugzilla.git Allow '\' as a path delimiter (bug 29064) Patch Concept by r= jake@acutex.net --- diff --git a/CGI.pl b/CGI.pl index 138e52414a..efcf0c2ac1 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";