aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index f781480bb7..abc67ecdac 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -718,7 +718,15 @@ function file_gc()
*/
function phpbb_is_greater_ie7($user_agent)
{
- return (bool) preg_match('/msie [^67]+\\.*;/', strtolower($user_agent));
+ if (preg_match('/msie (\d+)/', strtolower($user_agent), $matches))
+ {
+ $ie_version = (int) $matches[1];
+ return ($ie_version > 7);
+ }
+ else
+ {
+ return false;
+ }
}
?> \ No newline at end of file