public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] wlanap.cgi: Cosmetic fix - replace 'Save' image with 'Save' button
Date: Mon, 28 Dec 2020 14:20:33 +0100	[thread overview]
Message-ID: <5B388EF2-F7E2-4C61-9BF0-19800C7B83FD@ipfire.org> (raw)
In-Reply-To: <20201227154801.6788-1-matthias.fischer@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]

Hello,

> On 27 Dec 2020, at 16:48, Matthias Fischer <matthias.fischer(a)ipfire.org> wrote:
> 
> The 'WLanAP'-GUI is the only page where settings are saved by clicking
> an unlabeled floppy disk image.
> 
> Why? I don't know - this image is otherwise only used by the 'Backup'-GUI
> to save settings.
> 
> Now replaced by the standard 'Save' button.
> 
> Signed-off-by: Matthias Fischer <matthias.fischer(a)ipfire.org>
> ---
> html/cgi-bin/wlanap.cgi | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi
> index fd7e9a679..cfdcac576 100644
> --- a/html/cgi-bin/wlanap.cgi
> +++ b/html/cgi-bin/wlanap.cgi
> @@ -516,8 +516,7 @@ print <<END
> <table width='80%' cellspacing='0'>
> <tr><td align='center'>
> <form method='post' action='$ENV{'SCRIPT_NAME'}'>
> -       <input type='hidden' name='ACTION' value=$Lang::tr{'save'} />
> -       <input type='image' alt='$Lang::tr{'save'}' title='$Lang::tr{'save'}' src='/images/media-floppy.png' /></form></td>
> +       <input type='submit' name='ACTION' value=$Lang::tr{'save'} /></form></td>

This is invalid syntax because “value” is not quoted. Some HTML parsers do not care, but this would break if “save” would be longer than one word in one language.

-Michael

> </tr>
> </table>
> END
> -- 
> 2.18.0
> 


      reply	other threads:[~2020-12-28 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27 15:48 Matthias Fischer
2020-12-28 13:20 ` Michael Tremer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5B388EF2-F7E2-4C61-9BF0-19800C7B83FD@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox