From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Cc: Stefan Schantl <stefan.schantl@ipfire.org>
Subject: [PATCH] wlanap.cgi: Proper escape special characters in PSK
Date: Fri, 20 Feb 2026 19:29:21 +0100 [thread overview]
Message-ID: <20260220182921.11569-1-stefan.schantl@ipfire.org> (raw)
Otherwise a used quote leads to not proper display
the used PSK in the WUI.
Fixes #13920
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
html/cgi-bin/wlanap.cgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi
index 0c5dad558..a02b58b6d 100644
--- a/html/cgi-bin/wlanap.cgi
+++ b/html/cgi-bin/wlanap.cgi
@@ -414,7 +414,7 @@ print <<END;
<tr>
<td>$Lang::tr{'wlanap psk'}</td>
<td>
- <input type='text' name='PWD' value='$wlanapsettings{'PWD'}' />
+ <input type='text' name='PWD' value='@{[ &Header::escape($wlanapsettings{'PWD'}) ]}' />
</td>
</tr>
--
2.47.3
reply other threads:[~2026-02-20 18:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260220182921.11569-1-stefan.schantl@ipfire.org \
--to=stefan.schantl@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