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 dfebdcad..c87b9449 100644
--- a/index.php
+++ b/index.php
@@ -1545,7 +1545,7 @@ function renderPage()
1545 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces. 1545 $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces.
1546 $linkdate=$_POST['lf_linkdate']; 1546 $linkdate=$_POST['lf_linkdate'];
1547 $url = trim($_POST['lf_url']); 1547 $url = trim($_POST['lf_url']);
1548 if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?')) 1548 if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?') && !startsWith($url,'javascript:'))
1549 $url = 'http://'.$url; 1549 $url = 'http://'.$url;
1550 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0), 1550 $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0),
1551 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); 1551 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags));