diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1248,6 +1248,9 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) | |||
1248 | // Remove duplicates. | 1248 | // Remove duplicates. |
1249 | $tags = implode(' ', array_unique(explode(' ', $tags))); | 1249 | $tags = implode(' ', array_unique(explode(' ', $tags))); |
1250 | 1250 | ||
1251 | if (empty(trim($_POST['lf_url']))) { | ||
1252 | $_POST['lf_url'] = '?' . smallHash($linkdate . $id); | ||
1253 | } | ||
1251 | $url = whitelist_protocols(trim($_POST['lf_url']), $conf->get('security.allowed_protocols')); | 1254 | $url = whitelist_protocols(trim($_POST['lf_url']), $conf->get('security.allowed_protocols')); |
1252 | 1255 | ||
1253 | $link = array( | 1256 | $link = array( |