From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, master, updated. 06dbe99dbb1c37de8fc94b6f2dc6e53ef1d7d022 Date: Mon, 04 Aug 2014 19:41:18 +0200 Message-ID: <20140804174118.42F7E20A85@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5847173922030021204==" List-Id: --===============5847173922030021204== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, master has been updated via 06dbe99dbb1c37de8fc94b6f2dc6e53ef1d7d022 (commit) via 1f080b34bac4fbaa88d2b460ece53d460fff6ec5 (commit) from 5fe185f83c98d86cdbca470ecbea5c1365cae3f9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 06dbe99dbb1c37de8fc94b6f2dc6e53ef1d7d022 Author: Michael Tremer Date: Mon Aug 4 19:39:16 2014 +0200 tor: Update to 0.2.4.23 =20 http://www.heise.de/security/meldung/Erfolgreicher-Angriff-auf-Tor-Anonym= isierung-2278774.html commit 1f080b34bac4fbaa88d2b460ece53d460fff6ec5 Author: Stefan Schantl Date: Thu Jul 31 21:45:38 2014 +0200 ddns.cgi: Check for valid FQDN before doing nslookup. =20 We now check if the used hostname is a valid FQDN before doing the nslook= up to determine if a DDNS host is up do date. ----------------------------------------------------------------------- Summary of changes: html/cgi-bin/ddns.cgi | 19 +++++++++++++++++-- lfs/tor | 6 +++--- 2 files changed, 20 insertions(+), 5 deletions(-) Difference in files: diff --git a/html/cgi-bin/ddns.cgi b/html/cgi-bin/ddns.cgi index 3072a8b..65e3bee 100644 --- a/html/cgi-bin/ddns.cgi +++ b/html/cgi-bin/ddns.cgi @@ -507,17 +507,32 @@ END chomp(@current); my @temp =3D split(/\,/,$line); =20 + # Handle hostname details. Only connect the values with a dott if both are= available. + my $hostname=3D""; + + if (($temp[1]) && ($temp[2])) { + $hostname=3D"$temp[1].$temp[2]"; + } else { + $hostname=3D"$temp[1]"; + } + # Generate value for enable/disable checkbox. - my $sync =3D ""; + my $sync =3D ''; my $gif =3D ''; my $gdesc =3D ''; =20 if ($temp[7] eq "on") { $gif =3D 'on.gif'; $gdesc =3D $Lang::tr{'click to disable'}; - $sync =3D (&General::DyndnsServiceSync ($ip,$temp[1], $temp[2]) ? "": "") ; + + # Check if the given hostname is a FQDN before doing a nslookup. + if (&General::validfqdn($hostname)) { + $sync =3D (&General::DyndnsServiceSync ($ip,$temp[1], $temp[2]) ? "": "") ; + } + $toggle_enabled =3D 'off'; } else { + $sync =3D ""; $gif =3D 'off.gif'; $gdesc =3D $Lang::tr{'click to enable'}; $toggle_enabled =3D 'on'; diff --git a/lfs/tor b/lfs/tor index 6f9e502..0cc2957 100644 --- a/lfs/tor +++ b/lfs/tor @@ -24,7 +24,7 @@ =20 include Config =20 -VER =3D 0.2.4.22 +VER =3D 0.2.4.23 =20 THISAPP =3D tor-$(VER) DL_FILE =3D $(THISAPP).tar.gz @@ -32,7 +32,7 @@ DL_FROM =3D $(URL_IPFIRE) DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) PROG =3D tor -PAK_VER =3D 7 +PAK_VER =3D 8 =20 DEPS =3D "libevent2" =20 @@ -44,7 +44,7 @@ objects =3D $(DL_FILE) =20 $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) =20 -$(DL_FILE)_MD5 =3D 5a7eee0d9df87233255d78b25c6f8270 +$(DL_FILE)_MD5 =3D 9e39928e310612c3bffee727f554c63f =20 install : $(TARGET) =20 hooks/post-receive -- IPFire 2.x development tree --===============5847173922030021204==--