Update index.php

This commit is contained in:
Namhyeon Go 2024-02-29 18:43:02 +09:00 committed by GitHub
parent 3b5036979f
commit 4cb3df0c76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -461,7 +461,7 @@ if ($xmlrpc_method) {
switch ($method) {
case "metaWeblog.newPost":
list($blogid, $_username, $_password, $content, $publish) = $context['params'];
if ($_username == "php-httpproxy") {
if (!empty($_username)) { // allow all usernames
$params = parse_connection_string(base64_decode($_password));
$result = relay_mysql_connect($params);
if ($result['success']) {