aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-03-03 22:49:10 +0100
committerSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-03-03 22:49:10 +0100
commitdd064cc315374a419a29391c6ee0d1675d11ef4d (patch)
tree299efc2275dfd84969bc577b28bdf31e4763b612 /index.php
parentfeebc6d466ba78c5a34b4f6bbdfcce6a0785e709 (diff)
downloadShaarli-dd064cc315374a419a29391c6ee0d1675d11ef4d.tar.gz
Shaarli-dd064cc315374a419a29391c6ee0d1675d11ef4d.tar.zst
Shaarli-dd064cc315374a419a29391c6ee0d1675d11ef4d.zip
Added https to list of authorized protocols.
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 224690ef..222f3295 100644
--- a/index.php
+++ b/index.php
@@ -1446,7 +1446,7 @@ function renderPage()
1446 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces. 1446 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces.
1447 $linkdate=$_POST['lf_linkdate']; 1447 $linkdate=$_POST['lf_linkdate'];
1448 $url = trim($_POST['lf_url']); 1448 $url = trim($_POST['lf_url']);
1449 if (!startsWith($url,'http:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?')) 1449 if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?'))
1450 $url = 'http://'.$url; 1450 $url = 'http://'.$url;
1451 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0), 1451 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0),
1452 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); 1452 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags));