bug 1173: corrected output, missing s with sprintf bug-1173
authorINOPIAE <inopiae@cacert.org>
Tue, 11 Jun 2013 21:47:58 +0000 (23:47 +0200)
committerINOPIAE <inopiae@cacert.org>
Tue, 11 Jun 2013 21:47:58 +0000 (23:47 +0200)
www/disputes.php

index f8a5227..0f633ba 100644 (file)
                        showheader(_("Email Dispute"));
                        printf(_("Sorry, the email address '%s' cannot be disputed for administrative reasons. To solve this problem please get in contact with %s."), sanitizeHTML($email),"<a href='mailto:support@cacert.org'>support@cacert.org</a>");
                        $duser=$_SESSION['profile']['fname']." ".$_SESSION['profile']['lname'];
-                       $body = printf("Someone has just attempted to dispute this email '%s', which belongs to a locked account:\n".
+                       $body = sprintf("Someone has just attempted to dispute this email '%s', which belongs to a locked account:\n".
                                "Username(ID): %s (%s)\n".
                                "email: %s\n".
                                "IP/Hostname: %s\n", $email, $duser, $_SESSION['profile']['id'], $_SESSION['profile']['email'], $_SERVER['REMOTE_ADDR'].(array_key_exists('REMOTE_HOST',$_SERVER)?"/".$_SERVER['REMOTE_HOST']:""));
                        showheader(_("Domain Dispute"));
                        printf(_("Sorry, the domain '%s' cannot be disputed for administrative reasons. To solve this problem please get in contact with %s."), sanitizeHTML($domain),"<a href='mailto:support@cacert.org'>support@cacert.org</a>");
                        $duser=$_SESSION['profile']['fname']." ".$_SESSION['profile']['lname'];
-                       $body = printf("Someone has just attempted to dispute this domain '%s', which belongs to a locked account:\n".
+                       $body = sprintf("Someone has just attempted to dispute this domain '%s', which belongs to a locked account:\n".
                                "Username(ID): %s (%s)\n".
                                "email: %s\n".
                                "IP/Hostname: %s\n", $domain, $duser, $_SESSION['profile']['id'], $_SESSION['profile']['email'], $_SERVER['REMOTE_ADDR'].(array_key_exists('REMOTE_HOST',$_SERVER)?"/".$_SERVER['REMOTE_HOST']:""));