PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pgui_sanitize_connection_string()

static void pgui_sanitize_connection_string ( char *  connection_string)
static

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

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

Referenced by connection_test().

Here is the caller graph for this function: