contao/test — Issue #645: Environment->httpUserAgent() strips Window
Author: importer
Created: 2011-11-29 06:34:52+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)_