diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-10-15 12:51:25 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-10-15 12:51:25 -0500 |
commit | 649850e4e9928e9192417c4b4dc406c7e8eb582a (patch) | |
tree | 413111fa022dcbe6bd675f2cbe799d81f2d309d9 /config/squid3/34/squid_reverse.inc | |
parent | 01cbf628b0c380390ea05bd0b4aec62240160c1f (diff) | |
parent | f327b39571d6f45531d14da59c155964372e7c71 (diff) | |
download | pfsense-packages-649850e4e9928e9192417c4b4dc406c7e8eb582a.tar.gz pfsense-packages-649850e4e9928e9192417c4b4dc406c7e8eb582a.tar.bz2 pfsense-packages-649850e4e9928e9192417c4b4dc406c7e8eb582a.zip |
Merge pull request #1097 from doktornotor/patch-2
Diffstat (limited to 'config/squid3/34/squid_reverse.inc')
-rwxr-xr-x | config/squid3/34/squid_reverse.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/squid3/34/squid_reverse.inc b/config/squid3/34/squid_reverse.inc index 9693b21f..f19652b4 100755 --- a/config/squid3/34/squid_reverse.inc +++ b/config/squid3/34/squid_reverse.inc @@ -209,7 +209,11 @@ function squid_resync_reverse() { } if (($settings['reverse_owa'] == 'on') && (!empty($settings['reverse_owa_ip'])) && ($settings['reverse_owa_autodiscover'] == 'on')) { - $reverse_external_domain = strstr($settings['reverse_external_fqdn'], '.'); + if (substr_count($settings['reverse_external_fqdn'], ".") > 1) { + $reverse_external_domain = strstr($settings['reverse_external_fqdn'], '.'); + } else { + $reverse_external_domain = $settings['reverse_external_fqdn']; + } $conf .= "acl OWA_URI_pfs url_regex -i ^http://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n"; $conf .= "acl OWA_URI_pfs url_regex -i ^https://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n"; $conf .= "acl OWA_URI_pfs url_regex -i ^http://autodiscover{$reverse_external_domain}/AutoDiscover/AutoDiscover.xml\n"; |