aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/url.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-24 10:47:14 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-24 10:47:14 +0000
commit7b8bf02f5845bd2ebcdd82dad2e811822e706493 (patch)
tree6f438154f3401d5ade538ce902a155ee4527a61e /views/default/output/url.php
parent3a0cc3d3bc98dcec20b879e1205f72d971a66233 (diff)
downloadelgg-7b8bf02f5845bd2ebcdd82dad2e811822e706493.tar.gz
elgg-7b8bf02f5845bd2ebcdd82dad2e811822e706493.tar.bz2
Support HTTPS
git-svn-id: https://code.elgg.org/elgg/trunk@1509 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output/url.php')
-rw-r--r--views/default/output/url.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php
index b710bf512..1a76e08bf 100644
--- a/views/default/output/url.php
+++ b/views/default/output/url.php
@@ -17,7 +17,7 @@
$val = trim($vars['value']);
if (!empty($val)) {
- if (substr_count($val, "http://") == 0) {
+ if ((substr_count($val, "http://") == 0) || (substr_count($val, "https://") == 0)) {
$val = "http://" . $val;
}
echo "<a href=\"{$val}\" target=\"_blank\">{$val}</a>";