From 83ed6a85ef10757d147303b391343994d0d2faf8 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 2 Nov 2010 19:22:35 +0000 Subject: Refs #2463: Added elgg_normalize_url. forward() and add_menu() make use of it git-svn-id: http://code.elgg.org/elgg/trunk@7194 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engine/lib/elgglib.php') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index d162768f7..282b69fce 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -79,9 +79,7 @@ function forward($location = "") { $location = $_SERVER['HTTP_REFERER']; } - if ((substr_count($location, 'http://') == 0) && (substr_count($location, 'https://') == 0)) { - $location = $CONFIG->url . $location; - } + $location = elgg_normalize_url($location); // return new forward location or false to stop the forward or empty string to exit $current_page = current_page_url(); -- cgit v1.2.3