From 5efae52e3028850bd88ed03945f5d912420a36d3 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Tue, 5 Sep 2017 00:02:51 +0200 Subject: [PATCH] [BUGFIX] Delete links using POST closes #136 Signed-off-by: Jerome Jutteau --- f.php | 28 +++++++++++++++++++++++++--- lib/locales/template.json | 3 +++ 2 files changed, 28 insertions(+), 3 deletions(-) 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 { ?> +
+