aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 990611aff..84918d253 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -32,7 +32,7 @@
if (strpos($current_page, $CONFIG->wwwroot . "action") ===false)
$_SESSION['messages'] = system_messages();
- if (substr_count($location, 'http://') == 0) {
+ if ((substr_count($location, 'http://') == 0) && (substr_count($location, 'https://') == 0)) {
$location = $CONFIG->url . $location;
}