X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=23c8d473f81e58cd77690fc4ab565005ef295d97;hb=c27f2f36f228240d50b55d36fe97f0ba7833bc77;hp=b4c4347a40c46addc904079ae31f36b6b08da707;hpb=2a1292359b79ec77257583ea9d97891dfd2ddb1b;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index b4c4347a..23c8d473 100644 --- a/index.php +++ b/index.php @@ -1256,6 +1256,9 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) // Remove duplicates. $tags = implode(' ', array_unique(explode(' ', $tags))); + if (empty(trim($_POST['lf_url']))) { + $_POST['lf_url'] = '?' . smallHash($linkdate . $id); + } $url = whitelist_protocols(trim($_POST['lf_url']), $conf->get('security.allowed_protocols')); $link = array(