'Server/Windows Server'에 해당되는 글 1건

  1. 2014.01.20 IE11 판정

IE11 판정

Server/Windows Server 2014. 1. 20. 13:58

IE11의 User-Agent 값 변경으로 인해

 

기존의 MSIE 문자열로 IE 브라우저로 판정하는 부분이 IE11에서는 판정불가

 

IE10
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)


IE11
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko


chrome
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36

 

Opera
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 OPR/18.0.1284.68


FireFox
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

 

RESULT

파이어폭스, 오페라는 귀찮아서 예제 뒤늦게 뽑았음.

Trident/7.0 으로 판정문에 추가하면 해결 됨.

 

 

 

Posted by 철냄비짱
,