[Greater-commits] r332 - trunk/GREAT-ER-DB/impl/postgresql
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 30 14:12:22 CEST 2011
Author: bricks
Date: 2011-06-30 14:12:20 +0200 (Thu, 30 Jun 2011)
New Revision: 332
Modified:
trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
Log:
Check for invalid username in insert user function
Modified: trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-06-30 12:08:39 UTC (rev 331)
+++ trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-06-30 12:12:20 UTC (rev 332)
@@ -24066,6 +24066,13 @@
EXEC SQL END DECLARE SECTION;
+ if (!lgda_check_username(vp_user->user_id)) {
+ vp_errinfo->err_type = DA_ERRTYP_PG;
+ vp_errinfo->err_no = DA_ERR_INVALID_USERNAME;
+ sprintf(vp_errinfo->err_param, "%s - invalid username. (%s)", v_module, vp_user->user_id);
+ return DA_FAIL;
+ }
+
/* ------------------ *
* Start of function
* ------------------ */
More information about the Greater-commits
mailing list