2011-09-30 55 views
0

我正在使用php wurfl 1.3.1 with cakephp - 以下用户代理正在被选为不正确的移动浏览器。创建自己的wurfl异常

它是在Windows 7的机器上,64位版本的IE没有问题,但32位版本重定向到移动。

(32位)[问题]

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GetMiroToolbar 1.2; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)

(64位)

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)

如果你对我有一个解决方法,也请让我知道确保服务器正确读取新配置的适当步骤。我只是清除WURFL缓存? 谢谢。

回答

0
web_browsers_patch.xml

添加以下线:

<device user_agent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GetMiroToolbar 1.2; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)" 
     fall_back="msie" id="msie_8"> 
     <group id="product_info"> 
      <capability name="model_name" value="8.0" /> 
     </group> 
    </device>