From b266bd7bbc2177314c6ee0e28757594837409cbc Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Sun, 28 Feb 2021 11:54:00 +0100 Subject: now it delete itself like before --- gpigeon-template.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpigeon-template.cgi b/gpigeon-template.cgi index 1369c4e..8e67a28 100755 --- a/gpigeon-template.cgi +++ b/gpigeon-template.cgi @@ -56,6 +56,7 @@ my %text_strings = (link_del_ok => 'Successful removal !', web_greet_msg => 'Hi and welcome.', disconnect_btn_text => 'Disconnect', refresh_btn_text => 'Refresh', + type_msg_below => 'Type your message below', theader_link => 'Link', theader_for => 'For', theader_deletion => 'Deletion', @@ -112,11 +113,13 @@ if (argon2id_verify($PASSWD_HASH,$PASSWD)){ open my $out, '>', $LINK_FILENAME or die "Can't write to link file: $!"; while( <$in> ) { s/{link_user}/{$link_asker}/g; - s/{link_filename}/{$LINK_FILENAME}/g; + s/{link_filename}/{$GENERATED_FORM_FILENAME}/g; s/{msg_too_long}/$text_strings{msg_too_long}/g; s/{msg_empty}/$text_strings{msg_empty}/g; s/{msg_form_char_limit}/$msg_form_char_limit/g; + s/{link_web_title}/$text_strings{link_web_title}/g; s/{link_send_btn}/$text_strings{link_send_btn}/g; + s/{type_msg_below}/$text_strings{type_msg_below}/g; print $out $_; } close $in or die; -- cgit v1.2.3-70-g09d2