From b81a214ca823f7078c733828c4455843cf8598d9 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Thu, 4 Nov 2010 20:56:14 +0000 Subject: Fixes #2463: Added support for forwarding to root-level files, e.g. forward('install.php') git-svn-id: http://code.elgg.org/elgg/trunk@7238 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/output.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/lib/output.php') diff --git a/engine/lib/output.php b/engine/lib/output.php index 6f4ef7b96..2c3324b49 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -160,6 +160,11 @@ function elgg_normalize_url($url) { return $url; } + // 'install.php', 'install.php?step=step' + elseif (preg_match("#^[^/]*\.php(\?.*)?$#i", $url)) { + return elgg_get_site_url().$url; + } + // 'example.com', 'example.com/subpage' elseif (preg_match("#^[^/]*\.#i", $url)) { return "http://$url"; -- cgit v1.2.3