Only store a new gserver entry if it is a valid one
This commit is contained in:
parent
953477de87
commit
9a71472be6
|
@ -1157,7 +1157,7 @@ function poco_check_server($server_url, $network = "", $force = false) {
|
||||||
dbesc($last_failure),
|
dbesc($last_failure),
|
||||||
dbesc(normalise_link($server_url))
|
dbesc(normalise_link($server_url))
|
||||||
);
|
);
|
||||||
else
|
elseif (!$failure)
|
||||||
q("INSERT INTO `gserver` (`url`, `nurl`, `version`, `site_name`, `info`, `register_policy`, `poco`, `noscrape`, `network`, `platform`, `created`, `last_contact`, `last_failure`)
|
q("INSERT INTO `gserver` (`url`, `nurl`, `version`, `site_name`, `info`, `register_policy`, `poco`, `noscrape`, `network`, `platform`, `created`, `last_contact`, `last_failure`)
|
||||||
VALUES ('%s', '%s', '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
|
VALUES ('%s', '%s', '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
|
||||||
dbesc($server_url),
|
dbesc($server_url),
|
||||||
|
|
Loading…
Reference in a new issue