public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Liam McLoughlin" <hexxeh@hexxeh.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoaster:webui commit in: web/
Date: Fri, 15 Jul 2011 19:59:00 +0000 (UTC)	[thread overview]
Message-ID: <d8ab9fad2e88341c8c6cc7c2913ea74625fbe9d2.hexxeh@gentoo> (raw)

commit:     d8ab9fad2e88341c8c6cc7c2913ea74625fbe9d2
Author:     Liam McLoughlin <hexxeh <AT> hexxeh <DOT> net>
AuthorDate: Fri Jul 15 19:58:22 2011 +0000
Commit:     Liam McLoughlin <hexxeh <AT> hexxeh <DOT> net>
CommitDate: Fri Jul 15 19:58:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoaster.git;a=commit;h=d8ab9fad

Handle \r\n when building the configuration file

---
 web/process.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/web/process.php b/web/process.php
index 149c1b7..1b68d03 100644
--- a/web/process.php
+++ b/web/process.php
@@ -11,10 +11,10 @@
 	$root_password = escapeshellarg($_POST["rootpassword"]);
 	$packages_list = escapeshellarg($_POST["packages"]);
 	$output_format = escapeshellarg($_POST["format"]);
-	
-	
+
+	$packages_list = str_replace("\r\n", " ", $packages_list);
 	$packages_list = str_replace("\n", " ", $packages_list);
-	
+
 $ini_string = "[vmconfig]
 
 BUILD_ID='$build_id'
@@ -36,11 +36,11 @@ OUTPUT_FORMAT=$output_format";
 	$client = new GearmanClient();
 	$client->addServer();
 	$handle = $client->doBackground("invoke_image_build", $ini_string);
-		
+
 	$db = mysql_connect("localhost","gentoaster","");
 	if(!$db) die("Could not connect to database ".mysql_error());
 	mysql_select_db("gentoaster");
 	mysql_query("INSERT INTO builds (id, handle) VALUES('".$build_id."','".$handle."')");
 
 	header("Location: finished.php?uuid=".$build_id);
-?>
\ No newline at end of file
+?>



WARNING: multiple messages have this Message-ID (diff)
From: "Liam McLoughlin" <hexxeh@hexxeh.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoaster:master commit in: web/
Date: Fri, 12 Aug 2011 23:17:53 +0000 (UTC)	[thread overview]
Message-ID: <d8ab9fad2e88341c8c6cc7c2913ea74625fbe9d2.hexxeh@gentoo> (raw)
Message-ID: <20110812231753.Ux0sRNdBsqJIMmN_IrftHZQzU5j0Mi10bd-sJrAB5XM@z> (raw)

commit:     d8ab9fad2e88341c8c6cc7c2913ea74625fbe9d2
Author:     Liam McLoughlin <hexxeh <AT> hexxeh <DOT> net>
AuthorDate: Fri Jul 15 19:58:22 2011 +0000
Commit:     Liam McLoughlin <hexxeh <AT> hexxeh <DOT> net>
CommitDate: Fri Jul 15 19:58:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoaster.git;a=commit;h=d8ab9fad

Handle \r\n when building the configuration file

---
 web/process.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/web/process.php b/web/process.php
index 149c1b7..1b68d03 100644
--- a/web/process.php
+++ b/web/process.php
@@ -11,10 +11,10 @@
 	$root_password = escapeshellarg($_POST["rootpassword"]);
 	$packages_list = escapeshellarg($_POST["packages"]);
 	$output_format = escapeshellarg($_POST["format"]);
-	
-	
+
+	$packages_list = str_replace("\r\n", " ", $packages_list);
 	$packages_list = str_replace("\n", " ", $packages_list);
-	
+
 $ini_string = "[vmconfig]
 
 BUILD_ID='$build_id'
@@ -36,11 +36,11 @@ OUTPUT_FORMAT=$output_format";
 	$client = new GearmanClient();
 	$client->addServer();
 	$handle = $client->doBackground("invoke_image_build", $ini_string);
-		
+
 	$db = mysql_connect("localhost","gentoaster","");
 	if(!$db) die("Could not connect to database ".mysql_error());
 	mysql_select_db("gentoaster");
 	mysql_query("INSERT INTO builds (id, handle) VALUES('".$build_id."','".$handle."')");
 
 	header("Location: finished.php?uuid=".$build_id);
-?>
\ No newline at end of file
+?>



             reply	other threads:[~2011-07-15 19:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15 19:59 Liam McLoughlin [this message]
2011-08-12 23:17 ` [gentoo-commits] proj/gentoaster:master commit in: web/ Liam McLoughlin
  -- strict thread matches above, loose matches on Subject: below --
2011-07-27 20:11 [gentoo-commits] proj/gentoaster:webui " Liam McLoughlin
2011-07-27 20:25 Liam McLoughlin
2011-07-27 22:02 Liam McLoughlin
2011-07-27 22:04 Liam McLoughlin
2011-07-27 22:11 Liam McLoughlin
2011-07-27 22:11 Liam McLoughlin
2011-07-28  0:56 Liam McLoughlin
2011-07-28  1:02 Liam McLoughlin
2011-07-28  1:12 Liam McLoughlin
2011-08-02 17:31 Liam McLoughlin
2011-08-04 21:04 Liam McLoughlin
2011-08-06  0:14 Liam McLoughlin
2011-08-12 23:17 [gentoo-commits] proj/gentoaster:master " Liam McLoughlin
2011-07-24  2:43 ` [gentoo-commits] proj/gentoaster:webui " Liam McLoughlin
2011-08-12 23:17 [gentoo-commits] proj/gentoaster:master " Liam McLoughlin
2011-07-27 20:04 ` [gentoo-commits] proj/gentoaster:webui " Liam McLoughlin
2011-08-12 23:17 [gentoo-commits] proj/gentoaster:master " Liam McLoughlin
2011-07-28  1:08 ` [gentoo-commits] proj/gentoaster:webui " Liam McLoughlin
2011-08-12 23:17 [gentoo-commits] proj/gentoaster:master " Liam McLoughlin
2011-07-27 22:13 ` [gentoo-commits] proj/gentoaster:webui " Liam McLoughlin
2011-08-12 23:17 [gentoo-commits] proj/gentoaster:master " Liam McLoughlin
2011-08-02 17:22 ` [gentoo-commits] proj/gentoaster:webui " Liam McLoughlin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d8ab9fad2e88341c8c6cc7c2913ea74625fbe9d2.hexxeh@gentoo \
    --to=hexxeh@hexxeh.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox