[Greater-commits] r304 - trunk/GREAT-ER-DB/impl/postgresql

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 29 15:15:21 CEST 2011


Author: bricks
Date: 2011-06-29 15:15:20 +0200 (Wed, 29 Jun 2011)
New Revision: 304

Modified:
   trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
Log:
User lowercase letters for user_id to compare with current login user


Modified: trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc	2011-06-29 13:13:33 UTC (rev 303)
+++ trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc	2011-06-29 13:15:20 UTC (rev 304)
@@ -4702,7 +4702,7 @@
   lda_strtolower(h_user_id, vp_userid);
 
   /* check, if the given user is equal to the connected user */
-  if (strcmp(vp_userid, vg_db_user_info.user_id) == 0)
+  if (strcmp(h_user_id, vg_db_user_info.user_id) == 0)
     {
       /* initialise information for change of password */
       strcpy(h_passwd, vp_passwd); 



More information about the Greater-commits mailing list