aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 2568455e53..d9ebaa4281 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