2011-09-30 3 views
0

J'utilise php wurfl 1.3.1 avec cakephp - L'agent utilisateur suivant est détecté comme un navigateur mobile qui est incorrect.Créez votre propre exception wurfl

C'est sur une machine Windows 7, la version 64 bits de IE n'a pas de problème mais la version 32 bits redirige vers mobile.

(32 bits) [Problème]

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 bits)

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)

Si vous avez une solution pour moi, s'il vous plaît laissez-moi aussi connaître la étapes appropriées pour s'assurer que le serveur lit correctement les nouvelles configs. Dois-je effacer le cache WURFL? Merci.

Répondre

0

dans web_browsers_patch.xml I ajouté la ligne suivante:

<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> 
Questions connexes