From 2db306a4e4049ab759a10bb1e3c18d925d1583f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 28 Jul 2011 22:51:58 +0000 Subject: [PATCH] Double % for sprintf() --- inc/libs/register_functions.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 719f594bac..f4f35afea2 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -293,7 +293,7 @@ function doRegistration () { if (isExtensionInstalledAndNewer('theme', '0.0.8')) { // Okay, add design here $GLOBALS['register_sql_columns'] .= ', `curr_theme`'; - $GLOBALS['register_sql_data'] .= ", '{%pipe,getCurrentTheme%}'"; + $GLOBALS['register_sql_data'] .= ", '{%%pipe,getCurrentTheme%%}'"; } // END - if // Check if I shall disable sending mail to newly registered members out about active/begging rallye @@ -322,7 +322,7 @@ function doRegistration () { `{?_MYSQL_PREFIX?}_user_data` (`gender`,`surname`,`family`,`street_nr`,%s, `zip`,`city`,`email`,`birth_day`,`birth_month`,`birth_year`,`password`,`max_mails`,`receive_mails`,`refid`,`status`,`user_hash`,`REMOTE_ADDR`,`joined`,`last_update`,`ref_payout`".$GLOBALS['register_sql_columns'].") VALUES -('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONFIRMED','%s','%s', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_data'].")", +('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONFIRMED','%s','{%%pipe,detectRemoteAddr%%}', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_data'].")", array( $countryRow, substr(postRequestParameter('gender'), 0, 1), @@ -340,8 +340,7 @@ function doRegistration () { bigintval(postRequestParameter('max_mails')), bigintval(postRequestParameter('max_mails')), makeZeroToNull(postRequestParameter('refid')), - $hash, - detectRemoteAddr(), + $hash ), __FUNCTION__, __LINE__); // Get his userid -- 2.39.5