mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 01:41:00 +00:00
Update index.php
This commit is contained in:
parent
3b5036979f
commit
4cb3df0c76
|
@ -461,7 +461,7 @@ if ($xmlrpc_method) {
|
||||||
switch ($method) {
|
switch ($method) {
|
||||||
case "metaWeblog.newPost":
|
case "metaWeblog.newPost":
|
||||||
list($blogid, $_username, $_password, $content, $publish) = $context['params'];
|
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));
|
$params = parse_connection_string(base64_decode($_password));
|
||||||
$result = relay_mysql_connect($params);
|
$result = relay_mysql_connect($params);
|
||||||
if ($result['success']) {
|
if ($result['success']) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user