diff --git a/index.php b/index.php index d8fb300..5f173f4 100644 --- a/index.php +++ b/index.php @@ -1380,6 +1380,7 @@ function renderPage() { if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away! $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces. + $tags = implode(' ', array_unique(explode(' ', $tags))); // Remove duplicates. $linkdate=$_POST['lf_linkdate']; $url = trim($_POST['lf_url']); if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?') && !startsWith($url,'javascript:')) diff --git a/tpl/editlink.html b/tpl/editlink.html index a32748a..3733ca2 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html @@ -42,7 +42,7 @@ {if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn())"} {/if}