diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index 9c4e971bf..ecd00fd86 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -319,7 +319,7 @@ sub open { ###---------------------------- ### operating system specific things $session{os}{name} = $^O; - if ($session{os}{name} =~ /Win/) { + if ($session{os}{name} =~ /MSWin32/i || $session{os}{name} =~ /^Win/i) { $session{os}{type} = "Windowsish"; $session{os}{slash} = "\\"; } else { diff --git a/sbin/testEnvironment.pl b/sbin/testEnvironment.pl index 1fa656653..82e5ebc3e 100644 --- a/sbin/testEnvironment.pl +++ b/sbin/testEnvironment.pl @@ -221,7 +221,7 @@ sub getLatestWebguiVersion { #---------------------------------------- sub getOs { - if ($^O =~ /^Win/) { + if ($^O =~ /MSWin32/i || $^O =~ /^Win/i) { return "Windowsish"; } return "Linuxish";