From 45eb557978761532f2195233d146c7d36a67874d Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 14 Jun 2005 19:48:23 +0000 Subject: [PATCH] changed the windows signature check --- lib/WebGUI/Session.pm | 2 +- sbin/testEnvironment.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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";