X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=7df6d819ef4edc12ad95e66e659c21897beb88e3;hb=fc27141cf6eb04d3d8714385cb6961a8063fe61b;hp=c9bbfce5ac8587076f66d926ebe8ae6a7a512756;hpb=e8cef3ac43d5a50485c72ea2e8267e92b00be609;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index c9bbfce5..7df6d819 100644 --- a/index.php +++ b/index.php @@ -1248,6 +1248,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(