From 42ebef689fb45255613381a4d176977cddc9dc9d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 Nov 2019 15:09:34 +0100 Subject: [PATCH] Bug 23075: Do not 'Send' if the url is not correct Just in case. Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- admin/share_content.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/share_content.pl b/admin/share_content.pl index 7bfa3c82ad..3c76aba96d 100755 --- a/admin/share_content.pl +++ b/admin/share_content.pl @@ -65,7 +65,7 @@ if ( $op eq 'reset' ) { C4::Context->set_preference('ManaToken', ''); } -if ( $op eq 'send' ) { +if ( $op eq 'send' && not $bad_url ) { my $name = $query->param('name'); my $email = $query->param('email'); -- 2.39.5