summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2014-02-28 10:01:22 +0100
committerINOPIAE <inopiae@cacert.org>2014-02-28 10:01:22 +0100
commit682c6e71607dcf51f5b14cf41b5b21d03fceb62e (patch)
tree5ba08f8ae60239009767024067e53421292a19ea
parent643222269fab0bd19f765ccbef4e199b047c549e (diff)
downloadcacert-devel-682c6e71607dcf51f5b14cf41b5b21d03fceb62e.tar.gz
cacert-devel-682c6e71607dcf51f5b14cf41b5b21d03fceb62e.tar.xz
cacert-devel-682c6e71607dcf51f5b14cf41b5b21d03fceb62e.zip
bug 649: moved trim function
-rw-r--r--www/wot.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/wot.php b/www/wot.php
index 5b82d23..d4434a5 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -574,8 +574,8 @@ $iecho= "c";
{
$oldid=0;
$id = 0;
- $email = trim(mysql_real_escape_string($_REQUEST['email']));
- $reason = trim(mysql_real_escape_string($_REQUEST['reason']));
+ $email = mysql_real_escape_string(trim($_REQUEST['email']));
+ $reason = mysql_real_escape_string(trim($_REQUEST['reason']));
$uid = get_user_id_from_email($email);
if ($uid == 0) {
show_page("AssurerCheck","",_("I'm sorry, there was no email matching what you entered in the system. Please double check your information."));
@@ -595,7 +595,7 @@ $iecho= "c";
$my_translation = L10n::get_translation();
L10n::set_translation($assurer['language']);
- $subject = "[CAcert.org] ".sprintf(_("Assurer status report for you"));
+ $subject = "[CAcert.org] ". _("Assurer status report for you");
$body = sprintf(_("Hi %s,"), $assurer['fname'])."\n\n";
$body .= sprintf(_("%s %s (%s) has requested your assurer status for %s."),
@@ -616,7 +616,7 @@ $iecho= "c";
//mail to requestor
L10n::set_translation($my_translation);
- $subject = "[CAcert.org] ".sprintf(_("Assurer status report that you requested"));
+ $subject = "[CAcert.org] " . _("Assurer status report that you requested");
$body = sprintf(_("Hi %s,"), $_SESSION['profile']['fname'])."\n\n";
$body .= sprintf(_("you requested the assurer status of %s %s (%s) for %s."),