X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/aaff267fdddc495df3bfa2fc0eb0d20a76b6d220..e2e7aa7684b1d7b5c6824e04b4fd5368720817d0:/selfforum-cgi/user/fo_posting.pl?ds=sidebyside diff --git a/selfforum-cgi/user/fo_posting.pl b/selfforum-cgi/user/fo_posting.pl index 91a21a1..9bc7eb0 100644 --- a/selfforum-cgi/user/fo_posting.pl +++ b/selfforum-cgi/user/fo_posting.pl @@ -14,9 +14,11 @@ use strict; use vars qw($Bin $Shared $Script %subhash $httpurl $flocked); BEGIN { - ($Bin) = ($0 =~ /^(.*)\/.*$/)? $1 : '.'; + my $null = $0; $null =~ s/\\/\//g; # for win :-( + ($Bin) = ($null =~ /^(.*)\/.*$/)? $1 : '.'; $Shared = "$Bin/../shared"; - ($Script) = ($0 =~ /^.*\/(.*)$/)? $1 : $0;} + ($Script) = ($null =~ /^.*\/(.*)$/)? $1 : $null; +} use CGI::Carp qw(fatalsToBrowser);