remove path from source

pull/2077/head
Isaac Connor 2018-01-30 10:09:12 -05:00
parent aea1816e8e
commit b1f2b677c3
1 changed files with 1 additions and 0 deletions

View File

@ -249,6 +249,7 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) {
unset($url_parts['pass']); unset($url_parts['pass']);
unset($url_parts['scheme']); unset($url_parts['scheme']);
unset($url_parts['query']); unset($url_parts['query']);
unset($url_parts['path']);
if ( isset($url_parts['port']) and ( $url_parts['port'] == '80' or $url_parts['port'] == '554' ) ) if ( isset($url_parts['port']) and ( $url_parts['port'] == '80' or $url_parts['port'] == '554' ) )
unset($url_parts['port']); unset($url_parts['port']);
$source = unparse_url( $url_parts ); $source = unparse_url( $url_parts );