Added XSS prevention

pull/1/head
root 16 years ago
parent 5f25780550
commit 834d1b2ea7

@ -282,7 +282,7 @@
`IP`='".$_SERVER['REMOTE_ADDR']."'";
mysql_query($query);
$body = sprintf(_("You have been sent this email as the email address '%s' is being disputed. You have the option to accept or reject this request, after 2 days the request will automatically be discarded. Click the following link to accept or reject the dispute:"), sanitizeHTML($email))."\n\n";
$body = sprintf(_("You have been sent this email as the email address '%s' is being disputed. You have the option to accept or reject this request, after 2 days the request will automatically be discarded. Click the following link to accept or reject the dispute:"), $email)."\n\n";
$body .= "https://".$_SESSION['_config']['normalhostname']."/disputes.php?type=email&emailid=$emailid&hash=$hash\n\n";
$body .= _("Best regards")."\n"._("CAcert.org Support!");
@ -310,7 +310,7 @@
if(mysql_num_rows($res) > 0)
{
showheader(_("Domain Dispute"));
printf(_("The domain '%s' already exists in the dispute system. Can't continue."), $domain);
printf(_("The domain '%s' already exists in the dispute system. Can't continue."), sanitizeHTML($domain));
showfooter();
exit;
}
@ -321,7 +321,7 @@
if(mysql_num_rows($res) <= 0)
{
showheader(_("Domain Dispute"));
printf(_("The domain '%s' doesn't exist in the system. Can't continue."), $email);
printf(_("The domain '%s' doesn't exist in the system. Can't continue."), sanitizeHTML($email));
showfooter();
exit;
}
@ -402,7 +402,7 @@
if(mysql_num_rows($res) <= 0)
{
showheader(_("Domain Dispute!"));
printf(_("The domain '%s' isn't in the system. Can't continue."), $_SESSION['_config']['domain']);
printf(_("The domain '%s' isn't in the system. Can't continue."), sanitizeHTML($_SESSION['_config']['domain']));
showfooter();
exit;
}
@ -424,7 +424,7 @@
sendmail($authaddy, "[CAcert.org] "._("Dispute Probe"), $body, "support@cacert.org", "", "", "CAcert Support");
showheader(_("Domain Dispute"));
printf(_("The domain '%s' has been entered into the dispute system, the email address you choose will now be sent an email which will give the recipent the option of accepting or rejecting the request, if after 2 days we haven't received a valid response for or against we will discard the request."), $domain);
printf(_("The domain '%s' has been entered into the dispute system, the email address you choose will now be sent an email which will give the recipent the option of accepting or rejecting the request, if after 2 days we haven't received a valid response for or against we will discard the request."), sanitizeHTML($domain));
showfooter();
exit;
}

Loading…
Cancel
Save