]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes: #1475. elgg_http_build_url() correctly sets port number.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 15:04:37 +0000 (15:04 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 15:04:37 +0000 (15:04 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3887 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 35904176cf880e1c23aba0eb29e254de0ae4af32..a6e73437bb394f78569359312e9c5bf9689e6ddc 100644 (file)
@@ -2333,7 +2333,7 @@ function elgg_normalise_plural_options_array($options, $singulars) {
 
        return $options;
 }
-
+elgg_http_build_url()
 /**
  * Get the full URL of the current page.
  *
@@ -2528,7 +2528,7 @@ function elgg_http_build_url(array $parts) {
        // build only what's given to us.
        $scheme = isset($parts['scheme']) ? "{$parts['scheme']}://" : '';
        $host = isset($parts['host']) ? "{$parts['host']}" : '';
-       $port = isset($parts['port']) ? "{$parts['port']}" : '';
+       $port = isset($parts['port']) ? ":{$parts['port']}" : '';
        $path = isset($parts['path']) ? "{$parts['path']}" : '';
        $query = isset($parts['query']) ? "?{$parts['query']}" : '';