diff options
-rw-r--r-- | config/apache_mod_security/apache_mod_security.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index a7c3ceae..c571e435 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -222,7 +222,11 @@ EOF; $additionalsitehostnames .= "{$row['additionalsitehostnames']} "; $backend_sites = ""; // not technically needed. added for readability due to .='s foreach($ams['row'] as $row) { + // Ensure leading http(s):// + if(!strstr($row['webserveripaddr'], "http")) + $backend_sites .= "http://"; $backend_sites .= "{$row['webserveripaddr']}"; + // Ensure trailing / if(substr($row['webserveripaddr'],count($row['webserveripaddr']),1) != "/") $backend_sites .= "/ "; else |