summaryrefslogtreecommitdiffstats
path: root/system/helpers/url_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-09-17 15:01:14 +0200
committerAndrey Andreev <narf@bofh.bg>2012-09-17 15:01:14 +0200
commitc2300c827f769ecde286419fcab29c4ec9698822 (patch)
treee072b0f40addee24b62f949988ac89f72adb1ac2 /system/helpers/url_helper.php
parent4c81b72554f2dbac1159442965e7d0760b592e33 (diff)
parent035f499a59f9a226fa1223387074ef4e28abd4bb (diff)
Merge pull request #1783 from vlakoff/develop
Better server test in redirect() of URL helper
Diffstat (limited to 'system/helpers/url_helper.php')
-rw-r--r--system/helpers/url_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index 57208c948..b1f5eccf1 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -534,7 +534,7 @@ if ( ! function_exists('redirect'))
}
// IIS environment likely? Use 'refresh' for better compatibility
- if (DIRECTORY_SEPARATOR !== '/' && $method === 'auto')
+ if ($method === 'auto' && isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== FALSE)
{
$method = 'refresh';
}