[Mapbender-commits] r9284 - trunk/mapbender/http/geoportal

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 9 06:17:31 PDT 2015


Author: armin11
Date: 2015-09-09 06:17:30 -0700 (Wed, 09 Sep 2015)
New Revision: 9284

Modified:
   trunk/mapbender/http/geoportal/insertUserDataIntoDb.php
Log:
Bugfix for perpared statements

Modified: trunk/mapbender/http/geoportal/insertUserDataIntoDb.php
===================================================================
--- trunk/mapbender/http/geoportal/insertUserDataIntoDb.php	2015-09-09 11:34:32 UTC (rev 9283)
+++ trunk/mapbender/http/geoportal/insertUserDataIntoDb.php	2015-09-09 13:17:30 UTC (rev 9284)
@@ -45,8 +45,8 @@
 		//$sql = "SELECT * FROM mb_user WHERE mb_user_name = $1 AND mb_user_email = $2";
 		//Neu seit 2015-09-10 - Nutzernamen jetzt nur noch eindeutig möglich!
 		$sql = "SELECT * FROM mb_user WHERE mb_user_name = $1";
- 		$v = array($mb_user_name,$mb_user_email); // wird in unserer Lösung immer md5 genutzt?
-		$t = array('s','s');
+ 		$v = array($mb_user_name); // wird in unserer Lösung immer md5 genutzt?
+		$t = array('s');
  		$res = db_prep_query($sql,$v,$t);
  		$emailValid = 1;
 		if(db_numrows($res) == 0 and !($registerAsGuest)){



More information about the Mapbender_commits mailing list