contao/issues — Issue #645: Environment->httpUserAgent() strips Window
Author: importer
Created: 2011-11-24 15:44:03+00:00
State: open
Labels: Defect, framework

If the UserAgent is "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" the function returns "Mozilla/4.0 (compatible; MSIE 7.0; s NT 5.1)"
because it gets stripped by
$ua = preg_replace('/javascript|vbscri?pt|script|applet|alert|document|write|cookie|window/i', _, $ua);

--- _Originally created by anonymous on April 8th, 2009, at 12:13pm (ID 645)_