From 5fd1edeb8f6e5e5c8a89deee4ad2095641270990 Mon Sep 17 00:00:00 2001 From: Gordon Bateson Date: Mon, 25 Jan 2010 07:18:24 +0000 Subject: [PATCH] do not treat https absolute urls as relative urls --- mod/hotpot/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index 6dc1b12d611..14ad30e560c 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -2387,7 +2387,7 @@ function hotpot_convert_url($baseurl, $reference, $url, $stripslashes=true) { } // is this an absolute url? (or javascript pseudo url) - if (preg_match('%^(http://|/|javascript:)%i', $url)) { + if (preg_match('%^(http://|https://|/|javascript:)%i', $url)) { // do nothing // has this relative url already been converted?