From: Jerome Jutteau Date: Mon, 4 Sep 2017 22:02:51 +0000 (+0200) Subject: [BUGFIX] Delete links using POST X-Git-Tag: 3.3.0~6 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/5efae52e3028850bd88ed03945f5d912420a36d3 [BUGFIX] Delete links using POST closes #136 Signed-off-by: Jerome Jutteau --- diff --git a/f.php b/f.php index bcf0848..4289eae 100644 --- a/f.php +++ b/f.php @@ -84,10 +84,32 @@ if (!file_exists(VAR_FILES . $p . $link['md5'])) { } if (!empty($delete_code) && $delete_code == $link['link_code']) { - jirafeau_delete_link($link_name); require(JIRAFEAU_ROOT.'lib/template/header.php'); - echo '

'.t('File has been deleted.'). - '

'; + if (isset($_POST['do_delete'])) { + jirafeau_delete_link($link_name); + echo '

'.t('File has been deleted.'). + '

'; + } else { ?> +
+