PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ pgui_sanitize_connection_string()

static void pgui_sanitize_connection_string ( char *  connection_string)
static

Definition at line 2497 of file shp2pgsql-gui.c.

2498{
2499 char *ptr = strstr(connection_string, "password");
2500 if ( ptr )
2501 {
2502 ptr += 10;
2503 while ( *ptr != '\'' && *ptr != '\0' )
2504 {
2505 /* If we find a \, hide both it and the next character */
2506 if ( *ptr == '\\' )
2507 *ptr++ = '*';
2508
2509 *ptr++ = '*';
2510 }
2511 }
2512 return;
2513}

Referenced by connection_test().

Here is the caller graph for this function: