public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] connscheduler.cgi: Remove cleanhtml command from Remark
@ 2024-03-05 18:44 Adolf Belka
  2024-03-05 18:44 ` [PATCH] dhcp.cgi: " Adolf Belka
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Adolf Belka @ 2024-03-05 18:44 UTC (permalink / raw)
  To: development

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

- Using cleanhtml on Remarks means that all characters with diacritical marks such as
   umlauts or grave accents etc get encoded into other characters.
- If Freifunk München e.V. is entered as a remark it gets converted to
   Freifunk München e.V.
- cleanhtml is only removed from Remarks or Comment fields. In other places it has been
   left in place.

Tested-by: Adolf Belka <adolf.belka(a)ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka(a)ipfire.org>
---
 html/cgi-bin/connscheduler.cgi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/cgi-bin/connscheduler.cgi b/html/cgi-bin/connscheduler.cgi
index cc78cbc1b..817247cc4 100644
--- a/html/cgi-bin/connscheduler.cgi
+++ b/html/cgi-bin/connscheduler.cgi
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2024  IPFire Team  <info(a)ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -186,7 +186,7 @@ if ( ($cgiparams{'ACTION'} eq 'add') || ($cgiparams{'ACTION'} eq 'update') )
   $CONNSCHED::config[$i]{'DAYSTYPE'} = lc($cgiparams{'ACTION_DAYSTYPE'});
   $CONNSCHED::config[$i]{'DAYS'} = $l_days;
   $CONNSCHED::config[$i]{'WEEKDAYS'} = $l_weekdays;
-  $CONNSCHED::config[$i]{'COMMENT'} = &Header::cleanhtml($cgiparams{'ACTION_COMMENT'});
+  $CONNSCHED::config[$i]{'COMMENT'} = $cgiparams{'ACTION_COMMENT'};
 
   &CONNSCHED::WriteConfig;
 }
-- 
2.44.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-07 13:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-05 18:44 [PATCH] connscheduler.cgi: Remove cleanhtml command from Remark Adolf Belka
2024-03-05 18:44 ` [PATCH] dhcp.cgi: " Adolf Belka
2024-03-05 18:44 ` [PATCH] dnsforward.cgi: " Adolf Belka
2024-03-05 18:44 ` [PATCH] ovpnmain.cgi: " Adolf Belka
2024-03-05 18:44 ` [PATCH] vpnmain.cgi: " Adolf Belka
2024-03-05 18:44 ` [PATCH] wakeonlan.cgi: " Adolf Belka
2024-03-06 21:28 ` [PATCH] connscheduler.cgi: " Michael Tremer
2024-03-06 22:23   ` Adolf Belka
2024-03-07 11:18     ` Adolf Belka
2024-03-07 13:19       ` Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox