From 78f2cbe01052b586f0044f21fc4e8b7eb4bd0860 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 20 Feb 2013 11:48:19 +0000 Subject: [PATCH] Work on a problem with http_user_agent() that affects a limited number of systems. --- includes/lib_functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/lib_functions.php b/includes/lib_functions.php index c1e2f7f6fc..5806d1a4fb 100644 --- a/includes/lib_functions.php +++ b/includes/lib_functions.php @@ -798,8 +798,7 @@ function format_string ($format, $data) { //finally get the correct version number $known = array('Version', $ub, 'other'); - $pattern = '#(?' . join('|', $known) . - ')[/ ]+(?[0-9.|a-zA-Z.]*)#'; + $pattern = '#(?' . join('|', $known) . ')[/ ]+(?[0-9.|a-zA-Z.]*)#'; if (!preg_match_all($pattern, $u_agent, $matches)) { // we have no matching number just continue }