prevent unwanted code execution via CURLOPT_POSTFIELDS

pull/181/head
Till Krüss 10 years ago committed by Aleksander Machniak
parent 6fdf1f2072
commit 01014a20b9

@ -29,11 +29,11 @@ class rcube_domainfactory_password
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => 'https://ssl.df.eu/chmail.php',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => array(
CURLOPT_POSTFIELDS => http_build_query(array(
'login' => $rcmail->user->get_username(),
'pwd' => $curpass,
'action' => 'change'
)
))
));
if ($result = curl_exec($ch)) {

Loading…
Cancel
Save