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

◆ pgui_sanitize_connection_string()

static void pgui_sanitize_connection_string ( char *  connection_string)
static

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

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

Referenced by connection_test().

Here is the caller graph for this function: