Bug 23075: Do not 'Send' if the url is not correct
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 4 Nov 2019 14:09:34 +0000 (15:09 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 6 Nov 2019 17:05:18 +0000 (17:05 +0000)
Just in case.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

admin/share_content.pl

index 7bfa3c8..3c76aba 100755 (executable)
@@ -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');