When proxy adds '&' to the and of query string for non-cpaint service, that service can give an error "Invalid parameter: ''.".
To fix this we need DO NOT add anding & or dete it like there:
if ($_REQUEST['cpaint_remote_url'] != '') {
$cp_remote_url = urldecode($_REQUEST['cpaint_remote_url']);
$cp_remote_method = urldecode($_REQUEST['cpaint_remote_method']);
//my patch
if(substr($_REQUEST['cpaint_remote_query'],-1) == "&"){
$_REQUEST['cpaint_remote_query'] = substr($_REQUEST['cpaint_remote_query'],0,strlen($_REQUEST['cpaint_remote_query'])-1);
}
//
$cp_remote_query = urldecode($_REQUEST['cpaint_remote_query']);
$cp_response_type = strtoupper($_REQUEST['cpaint_response_type']);
} // end: if
Logged In: YES
user_id=1933862
Originator: YES
I mean: To fix this we need DO NOT add anding & or DELETE it like there...