Browse Source

make all urls without scheme http (#1133)

causefx 7 years ago
parent
commit
2f5911b717
1 changed files with 1 additions and 5 deletions
  1. 1 5
      api/functions/normal-functions.php

+ 1 - 5
api/functions/normal-functions.php

@@ -395,11 +395,7 @@ function qualifyURL($url, $return = false)
 	$digest = parse_url(rtrim(preg_replace('/\s+/', '', $url), '/'));
 	// http/https
 	if (!isset($digest['scheme'])) {
-		if (isset($digest['port']) && in_array($digest['port'], array(80, 8080, 8096, 32400, 7878, 8989, 8182, 8081, 6789))) {
-			$scheme = 'http';
-		} else {
-			$scheme = 'https';
-		}
+		$scheme = 'http';
 	} else {
 		$scheme = $digest['scheme'];
 	}