From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QmAS0-0007IH-7H for garchives@archives.gentoo.org; Wed, 27 Jul 2011 20:11:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 360C221C091; Wed, 27 Jul 2011 20:11:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 04A6421C091 for ; Wed, 27 Jul 2011 20:11:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55D461B401E for ; Wed, 27 Jul 2011 20:11:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B837D8003D for ; Wed, 27 Jul 2011 20:11:18 +0000 (UTC) From: "Liam McLoughlin" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Liam McLoughlin" Message-ID: Subject: [gentoo-commits] proj/gentoaster:webui commit in: web/ X-VCS-Repository: proj/gentoaster X-VCS-Files: web/process.php X-VCS-Directories: web/ X-VCS-Committer: hexxeh X-VCS-Committer-Name: Liam McLoughlin X-VCS-Revision: aebdf3ef47a283793013a9da18c25c73458f400a Date: Wed, 27 Jul 2011 20:11:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 3a4be33b6824e71af1b703ba672a93e5 commit: aebdf3ef47a283793013a9da18c25c73458f400a Author: Liam McLoughlin hexxeh net> AuthorDate: Wed Jul 27 20:10:52 2011 +0000 Commit: Liam McLoughlin hexxeh net> CommitDate: Wed Jul 27 20:10:52 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoaster.gi= t;a=3Dcommit;h=3Daebdf3ef Add missing IP address parameter when creating job entry --- web/process.php | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/process.php b/web/process.php index 9ba055b..1daaa86 100644 --- a/web/process.php +++ b/web/process.php @@ -5,12 +5,12 @@ =20 require_once "config.php"; =20 + $ipaddress =3D filter_input(INPUT_SERVER, "REMOTE_ADDR", + FILTER_VALIDATE_IP); + if (RECAPTCHA_ENABLED) { require_once "recaptcha.php"; - =20 - $remoteAddress =3D filter_input(INPUT_SERVER, - "REMOTE_ADDR", - FILTER_VALIDATE_IP); + $challenge =3D filter_input(INPUT_POST, "recaptcha_challenge_field", FILTER_UNSAFE_RAW); @@ -19,7 +19,7 @@ FILTER_UNSAFE_RAW); =20 $resp =3D recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, - $remoteAddress, + $ipaddress, $challenge, $response); =20 @@ -76,8 +76,8 @@ OUTPUT_FORMAT=3D$outputFormat"; die("Could not connect to database ".mysqli_connect_error()); } =20 - $stmt =3D $db->prepare("INSERT INTO builds (id, handle) VALUES(?, ?)= "); - $stmt->bind_param("ss", $buildID, $handle); + $stmt =3D $db->prepare("INSERT INTO builds (id, handle, ipaddress) V= ALUES(?, ?, ?)"); + $stmt->bind_param("sss", $buildID, $handle, $ipaddress); $stmt->execute(); $stmt->close(); $db->close(); From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qs112-0004Ic-UW for garchives@archives.gentoo.org; Fri, 12 Aug 2011 23:19:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C909B21C3CB; Fri, 12 Aug 2011 23:17:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9599C21C2FE for ; Fri, 12 Aug 2011 23:17:57 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1FA7B1B406E for ; Fri, 12 Aug 2011 23:17:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 6CBFC80052 for ; Fri, 12 Aug 2011 23:17:56 +0000 (UTC) From: "Liam McLoughlin" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Liam McLoughlin" Message-ID: Subject: [gentoo-commits] proj/gentoaster:master commit in: web/ X-VCS-Repository: proj/gentoaster X-VCS-Files: web/process.php X-VCS-Directories: web/ X-VCS-Committer: hexxeh X-VCS-Committer-Name: Liam McLoughlin X-VCS-Revision: aebdf3ef47a283793013a9da18c25c73458f400a Date: Fri, 12 Aug 2011 23:17:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 579ec3226f846da4e43c913fe2f8d65b Message-ID: <20110812231756.cwyGI0-G7hN7g_qzS-1YcsBw4Iw4rsZ3vZk-v3F_upg@z> commit: aebdf3ef47a283793013a9da18c25c73458f400a Author: Liam McLoughlin hexxeh net> AuthorDate: Wed Jul 27 20:10:52 2011 +0000 Commit: Liam McLoughlin hexxeh net> CommitDate: Wed Jul 27 20:10:52 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoaster.gi= t;a=3Dcommit;h=3Daebdf3ef Add missing IP address parameter when creating job entry --- web/process.php | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/process.php b/web/process.php index 9ba055b..1daaa86 100644 --- a/web/process.php +++ b/web/process.php @@ -5,12 +5,12 @@ =20 require_once "config.php"; =20 + $ipaddress =3D filter_input(INPUT_SERVER, "REMOTE_ADDR", + FILTER_VALIDATE_IP); + if (RECAPTCHA_ENABLED) { require_once "recaptcha.php"; - =20 - $remoteAddress =3D filter_input(INPUT_SERVER, - "REMOTE_ADDR", - FILTER_VALIDATE_IP); + $challenge =3D filter_input(INPUT_POST, "recaptcha_challenge_field", FILTER_UNSAFE_RAW); @@ -19,7 +19,7 @@ FILTER_UNSAFE_RAW); =20 $resp =3D recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, - $remoteAddress, + $ipaddress, $challenge, $response); =20 @@ -76,8 +76,8 @@ OUTPUT_FORMAT=3D$outputFormat"; die("Could not connect to database ".mysqli_connect_error()); } =20 - $stmt =3D $db->prepare("INSERT INTO builds (id, handle) VALUES(?, ?)= "); - $stmt->bind_param("ss", $buildID, $handle); + $stmt =3D $db->prepare("INSERT INTO builds (id, handle, ipaddress) V= ALUES(?, ?, ?)"); + $stmt->bind_param("sss", $buildID, $handle, $ipaddress); $stmt->execute(); $stmt->close(); $db->close();