提交 fa277ce7 authored 作者: Mathieu Parent's avatar Mathieu Parent

MediaBrotha: add ability to force Cisco-XML mode

上级 356d373c
......@@ -26,7 +26,7 @@ This file is part of XML services for Cisco IP Phones.
class CiscoIPPhone {
static public function userAgentIsCiscoIPPhone() {
if (isset($_SERVER['HTTP_USER_AGENT'])) {
return preg_match('/^Allegro-Software-WebClient\//', $_SERVER['HTTP_USER_AGENT']);
return preg_match('/^Allegro-Software-WebClient\//', $_SERVER['HTTP_USER_AGENT']) || isset($_GET['forceciscoxml']);
}
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论