diff options
author | Sebastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-03-03 22:49:10 +0100 |
---|---|---|
committer | Sebastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-03-03 22:49:10 +0100 |
commit | dd064cc315374a419a29391c6ee0d1675d11ef4d (patch) | |
tree | 299efc2275dfd84969bc577b28bdf31e4763b612 /index.php | |
parent | feebc6d466ba78c5a34b4f6bbdfcce6a0785e709 (diff) | |
download | Shaarli-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |