Bug 23075: Do not 'Send' if the url is not correct

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>
This commit is contained in:
Jonathan Druart 2019-11-04 15:09:34 +01:00 committed by Martin Renvoize
parent 1e47e5a849
commit 42ebef689f
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -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');