From d7aaf1da0a221709588caf049183eb7d4b0f6fe1 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Wed, 22 Oct 2014 09:40:46 -0700 Subject: [PATCH] make Konqueror rule case-insensitive so it detects current Konquerors --- include/classes/useragent.php-class | 2 +- testbed/ua_list_raw.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index 3dff7ae..26c8016 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -349,7 +349,7 @@ class userAgent { $this->version = $regs[1]; $this->bot = false; } - elseif (preg_match('|Konqueror/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { + elseif (preg_match('|Konqueror/([0-9a-zA-Z\.+]+)|i', $this->uastring, $regs)) { $this->brand = 'Konqueror'; $this->version = $regs[1]; $this->bot = false; diff --git a/testbed/ua_list_raw.txt b/testbed/ua_list_raw.txt index 6c400c9..2204db1 100755 --- a/testbed/ua_list_raw.txt +++ b/testbed/ua_list_raw.txt @@ -176,6 +176,7 @@ Mozilla/5.0 (compatible; Konqueror/3.1; CYGWIN_NT-5.1) Mozilla/5.0 (compatible; Konqueror/3.2; OpenBSD) (KHTML, like Gecko) Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko) Mozilla/5.0 (compatible; Konqueror/3.3; Linux; X11; i686; es, en_US) KHTML/3.3.2 (like Gecko) +Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) konqueror/4.14.0 Safari/534.34 Mozilla/5.0 (Windows; U; Windows NT 5.1; de) AppleWebKit/522.13.1 (KHTML, like Gecko) Version/3.0.2 Safari/522.13.1 Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/51 (like Gecko) Safari/51 Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27 -- 2.43.0