projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a50f511
)
Fix for register
author
Roland Häder
<roland@mxchange.org>
Thu, 5 Nov 2009 17:40:18 +0000
(17:40 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 5 Nov 2009 17:40:18 +0000
(17:40 +0000)
inc/modules/guest/what-register.php
patch
|
blob
|
history
diff --git
a/inc/modules/guest/what-register.php
b/inc/modules/guest/what-register.php
index 9065ccf701edaa5bc5d6800c9c54b79bdd00d78f..cec2ecc034f588d8c3fdbe278ed1f62185c1f926 100644
(file)
--- a/
inc/modules/guest/what-register.php
+++ b/
inc/modules/guest/what-register.php
@@
-404,7
+404,7
@@
VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
}
if ($shortPass === true) {
}
if ($shortPass === true) {
- registerOutputFailedMessage('SHORT_PASS',
": ".
getConfig('pass_len'));
+ registerOutputFailedMessage('SHORT_PASS',
': ' .
getConfig('pass_len'));
} // END - if
if ($ipTimedOut === true) {
} // END - if
if ($ipTimedOut === true) {
@@
-448,9
+448,12
@@
VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
$content['surname'] = SQL_ESCAPE(postRequestElement('surname'));
$content['family'] = SQL_ESCAPE(postRequestElement('family'));
$content['street_nr'] = SQL_ESCAPE(postRequestElement('street_nr'));
$content['surname'] = SQL_ESCAPE(postRequestElement('surname'));
$content['family'] = SQL_ESCAPE(postRequestElement('family'));
$content['street_nr'] = SQL_ESCAPE(postRequestElement('street_nr'));
- $content['zip'] = bigintval(postRequestElement('zip'));
+ $content['zip'] = '';
+ if (isPostRequestElementSet('zip')) {
+ $content['zip'] = bigintval(postRequestElement('zip'));
+ } // END - if
$content['city'] = SQL_ESCAPE(postRequestElement('city'));
$content['city'] = SQL_ESCAPE(postRequestElement('city'));
- $content['email']
= SQL_ESCAPE(postRequestElement('email'));
+ $content['email'] = SQL_ESCAPE(postRequestElement('email'));
// Prepare country selection box
$OUT = "<select name=\"country_code\" class=\"guest_select\" size=\"1\">\n";
// Prepare country selection box
$OUT = "<select name=\"country_code\" class=\"guest_select\" size=\"1\">\n";