aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index cda918df..066058e6 100644
--- a/index.php
+++ b/index.php
@@ -1547,7 +1547,7 @@ function renderPage()
1547 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces. 1547 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces.
1548 $linkdate=$_POST['lf_linkdate']; 1548 $linkdate=$_POST['lf_linkdate'];
1549 $url = trim($_POST['lf_url']); 1549 $url = trim($_POST['lf_url']);
1550 if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?')) 1550 if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?') && !startsWith($url,'javascript:'))
1551 $url = 'http://'.$url; 1551 $url = 'http://'.$url;
1552 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0), 1552 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0),
1553 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); 1553 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags));