浏览代码

Note to fix naive user agent sniffing

pdontthink 18 年之前
父节点
当前提交
18c893b9a7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      functions/template.php

+ 1 - 0
functions/template.php

@@ -47,6 +47,7 @@ $xhtml_end='';
         $browser = 'msie4';
         $dom_browser = false;
         $is_IE = true;
+//FIXME: this fails for Opera because its user agent also contains MSIE
     } elseif (stristr($browser_user_agent, "msie")) {
         $browser = 'msie';
         $dom_browser = true;