diff options
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)); |