From aed7879278ec62daf814f855f3d229d935a67829 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 1 Feb 2010 15:04:37 +0000 Subject: Fixes: #1475. elgg_http_build_url() correctly sets port number. git-svn-id: http://code.elgg.org/elgg/trunk@3887 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 35904176c..a6e73437b 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -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']}" : ''; -- cgit v1.2.3