Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-16 16:03:53 +0100
committerErich Eckner <git@eckner.net>2019-01-16 16:03:53 +0100
commitd73640dfd1d252fe16ef9d3091c3eaaf5bbd6bab (patch)
treee3a4ac27b0a769465fc88a474564b460cf95f5dd /buildmaster
parent76893b3b0c7671a84a8f1bfd06dd2f22ef5b7b0e (diff)
buildmaster/build-list.php: mysql_url_encode() stuff
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/build-list.php21
1 files changed, 11 insertions, 10 deletions
diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php
index b69673f..79313e4 100644
--- a/buildmaster/build-list.php
+++ b/buildmaster/build-list.php
@@ -124,9 +124,9 @@ $columns = array(
"mysql_query" =>
"CONCAT(" .
"\"<a href=\\\"/buildmaster/dependencies.php?b=\"," .
- "`ba_q`.`pkgbase`," .
+ mysql_url_encode("`ba_q`.`pkgbase`") . "," .
"\"&a=\"," .
- "`ba_q`.`arch`,".
+ mysql_url_encode("`ba_q`.`arch`") . ",".
"\"&r=build-list\\\">\"," .
"`ba_q`.`pkgbase`," .
"\"</a>\"" .
@@ -141,15 +141,15 @@ $columns = array(
"IF(`ba_q`.`uses_upstream`," .
"CONCAT(" .
"\"<a href=\\\"https://git.archlinux.org/svntogit/\"," .
- "`ba_q`.`git_repository`," .
+ mysql_url_encode("`ba_q`.`git_repository`") . "," .
"\".git/tree/\"," .
- "`ba_q`.`pkgbase`," .
+ mysql_url_encode("`ba_q`.`pkgbase`") . "," .
"\"/repos/\"," .
- "`ba_q`.`package_repository`," .
+ mysql_url_encode("`ba_q`.`package_repository`") . "," .
"\"-\"," .
- "IF(`ba_q`.`arch`=\"any\",\"any\",\"x86_64\")," .
+ mysql_url_encode("IF(`ba_q`.`arch`=\"any\",\"any\",\"x86_64\")") . "," .
"\"?id=\"," .
- "`ba_q`.`git_revision`," .
+ mysql_url_encode("`ba_q`.`git_revision`") . "," .
"\"\\\">\"," .
"`ba_q`.`git_revision`," .
"\"</a>\"" .
@@ -169,8 +169,9 @@ $columns = array(
git_url(
"packages",
"tree",
- "\",`ba_q`.`mod_git_revision`,\"",
- "\",`ba_q`.`package_repository`,\"/\",`ba_q`.`pkgbase`,\"",
+ "\"," . mysql_url_encode("`ba_q`.`mod_git_revision`") . ",\"",
+ "\"," . mysql_url_encode("`ba_q`.`package_repository`") . ",\"/\"," .
+ mysql_url_encode("`ba_q`.`pkgbase`") . ",\"",
null,
true
) .
@@ -354,7 +355,7 @@ $result = mysql_run_query(
"GROUP_CONCAT(" .
"CONCAT(" .
"\"<a href=\\\"https://buildmaster.archlinux32.org/build-logs/error/\"," .
- "`rfb`.`log_file`," .
+ mysql_url_encode("`rfb`.`log_file`") . "," .
"\"\\\">\"," .
"`fail_reasons`.`name`," .
"\"</a>\"" .