com web/master: Properly ignore inactive/broken mirrors in phpweb. Fixes #69666: fetch/mirrors.php
| From: | Hannes Magnusson | Date: | Wed, 20 May 2015 20:54:13 +0000 |
| Subject: | com web/master: Properly ignore inactive/broken mirrors in phpweb. Fixes #69666: fetch/mirrors.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21184@lists.php.net to get a copy of this message | ||
Commit: dec72b06c96b035e66906cc4ea0c937817721326
Author: Hannes Magnusson <bjori@php.net> Wed, 20 May 2015 13:54:13 -0700
Parents: 22d128257738f0ffeef43916a8788bfe68158a08
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=dec72b06c96b035e66906cc4ea0c937817721326
Log:
Properly ignore inactive/broken mirrors in phpweb. Fixes #69666
Bugs:
https://bugs.php.net/69666
Changed paths:
M fetch/mirrors.php
Diff:
diff --git a/fetch/mirrors.php b/fetch/mirrors.php
index 654b9c7..0b056cc 100644
--- a/fetch/mirrors.php
+++ b/fetch/mirrors.php
@@ -48,6 +48,7 @@ if (@mysql_connect("localhost","nobody","")) {
$res = @mysql_query(
"SELECT mirrors.*, country.name AS cname " .
"FROM mirrors LEFT JOIN country ON mirrors.cc = country.id " .
+ "WHERE ocmt = '' AND active = 1 " .
"ORDER BY country.name,hostname"
);