* [PATCH] wlanap.cgi: Proper escape special characters in PSK
@ 2026-02-20 18:29 Stefan Schantl
0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2026-02-20 18:29 UTC (permalink / raw)
To: development; +Cc: Stefan Schantl
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-20 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-20 18:29 [PATCH] wlanap.cgi: Proper escape special characters in PSK Stefan Schantl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox