strip query and scheme from source

This commit is contained in:
Isaac Connor 2018-01-29 19:03:16 -05:00
parent a60da6811b
commit b9a98d34bf
1 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,10 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) {
$url_parts = parse_url( $monitor['Path'] );
unset($url_parts['user']);
unset($url_parts['pass']);
unset($url_parts['scheme']);
unset($url_parts['query']);
if ( isset($url_parts['port']) and ( $url_parts['port'] == '80' or $url_parts['port'] == '554' ) )
unset($url_parts['port']);
$source = unparse_url( $url_parts );
}
if ( $source == '' ) {