summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2014-03-15 21:32:06 +0100
committerINOPIAE <inopiae@cacert.org>2014-03-15 21:32:06 +0100
commit014b2bc7e834c6f95497b8b8bd4a421d996c8e10 (patch)
tree28002c8f252d2fb78c9b5b131f1db25320202a5b
parent1fe48d41048314e6f858a682018a026294d76431 (diff)
downloadcacert-devel-014b2bc7e834c6f95497b8b8bd4a421d996c8e10.tar.gz
cacert-devel-014b2bc7e834c6f95497b8b8bd4a421d996c8e10.tar.xz
cacert-devel-014b2bc7e834c6f95497b8b8bd4a421d996c8e10.zip
bug 657: added strtoupper for country code while saving to database
-rw-r--r--includes/account.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/account.php b/includes/account.php
index 7c3748d..4098364 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -2215,7 +2215,7 @@ function buildSubjectFromSession() {
`contact`='".$_SESSION['_config']['contact']."',
`L`='".$_SESSION['_config']['L']."',
`ST`='".$_SESSION['_config']['ST']."',
- `C`='".$_SESSION['_config']['C']."',
+ `C`='".strtoupper($_SESSION['_config']['C'])."',
`comments`='".$_SESSION['_config']['comments']."'");
showheader(_("My CAcert.org Account!"));
printf(_("'%s' has just been successfully added as an organisation to the database."), sanitizeHTML($_SESSION['_config']['O']));
@@ -2243,7 +2243,7 @@ function buildSubjectFromSession() {
`contact`='".$_SESSION['_config']['contact']."',
`L`='".$_SESSION['_config']['L']."',
`ST`='".$_SESSION['_config']['ST']."',
- `C`='".$_SESSION['_config']['C']."',
+ `C`='".strtoupper($_SESSION['_config']['C'])."',
`comments`='".$_SESSION['_config']['comments']."'
where `id`='".$_SESSION['_config']['orgid']."'");
showheader(_("My CAcert.org Account!"));