aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
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 83a54f86..a82c4409 100644
--- a/index.php
+++ b/index.php
@@ -1548,7 +1548,7 @@ function renderPage()
1548 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces. 1548 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces.
1549 $linkdate=$_POST['lf_linkdate']; 1549 $linkdate=$_POST['lf_linkdate'];
1550 $url = trim($_POST['lf_url']); 1550 $url = trim($_POST['lf_url']);
1551 if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?')) 1551 if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?') && !startsWith($url,'javascript:'))
1552 $url = 'http://'.$url; 1552 $url = 'http://'.$url;
1553 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0), 1553 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0),
1554 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); 1554 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags));