PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ pgui_sanitize_connection_string()

static void pgui_sanitize_connection_string ( char *  connection_string)
static

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

Referenced by connection_test().

2491 {
2492  char *ptr = strstr(connection_string, "password");
2493  if ( ptr )
2494  {
2495  ptr += 10;
2496  while ( *ptr != '\'' && *ptr != '\0' )
2497  {
2498  /* If we find a \, hide both it and the next character */
2499  if ( *ptr == '\\' )
2500  *ptr++ = '*';
2501 
2502  *ptr++ = '*';
2503  }
2504  }
2505  return;
2506 }
Here is the caller graph for this function: