From 0b946b848c72511922fa211b6a4db0da092d204c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 25 Sep 2025 16:37:27 +0200 Subject: [PATCH] ddns.cgi: Escape the variables when they are being sent back to the browser Signed-off-by: Michael Tremer --- html/cgi-bin/ddns.cgi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/html/cgi-bin/ddns.cgi b/html/cgi-bin/ddns.cgi index 60565da3f..8c2600500 100644 --- a/html/cgi-bin/ddns.cgi +++ b/html/cgi-bin/ddns.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2025 IPFire Team # +# Copyright (C) 2007-2014 IPFire Team # # # # 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 # @@ -226,9 +226,6 @@ if (($settings{'ACTION'} eq $Lang::tr{'add'}) || ($settings{'ACTION'} eq $Lang:: flock FILE, 2; # Add account data to the file. - $settings{'SERVICE'} = &Header::escape(($settings{'SERVICE'}); - $settings{'LOGIN'} = &Header::escape(($settings{'LOGIN'}); - $settings{'PASSWORD'} = &Header::escape(($settings{'PASSWORD'}); print FILE "$settings{'SERVICE'},$hostname,$domain,$settings{'PROXY'},$settings{'WILDCARDS'},$settings{'LOGIN'},$settings{'PASSWORD'},$settings{'ENABLED'}\n"; # Close file after writing. @@ -527,17 +524,19 @@ print < $Lang::tr{'username'} - + $Lang::tr{'token'} - + $Lang::tr{'password'} - +
-- 2.47.3