Fossil

Check-in [99a98377]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Prompt for the password whenever a URL is supplied that contains a username but no password.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 99a98377ecc0c4b8ce3f79007122330ba229dd27
User & Date: drh 2010-03-05 01:00:09
Context
2010-03-08
13:18
Get skins working again. They were busted by check-in [5476e50d659] (which was backed out using the new --backout option to merge.) Also add an unused query parameter to the style.css to force a reload of the CSS when the skin changes. check-in: b22e5a9e user: drh tags: trunk
2010-03-05
13:55
Use double-quotes instead of single-quotes in skin template to avoid having to escape the single quotes for SQL. check-in: 5476e50d user: drh tags: trunk
01:00
Prompt for the password whenever a URL is supplied that contains a username but no password. check-in: 99a98377 user: drh tags: trunk
00:45
If no password is supplied, give the user a single opportunity to enter the password (if they are on a tty) then fail the clone. check-in: 03ed0836 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sync.c.

98
99
100
101
102
103
104



105

106
107
108
109
110
111
112
  }
  url_parse(zUrl);
  if( !g.dontKeepUrl ){
    db_set("last-sync-url", g.urlCanonical, 0);
    if( g.urlPasswd ) db_set("last-sync-pw", g.urlPasswd, 0);
  }
  if( g.urlUser!=0 && g.urlPasswd==0 ){



    g.urlPasswd = mprintf("%s", zPw);

  }
  user_select();
  if( g.argc==2 ){
    printf("Server:    %s\n", g.urlCanonical);
  }
  url_enable_proxy("via proxy: ");
}







>
>
>
|
>







98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
  }
  url_parse(zUrl);
  if( !g.dontKeepUrl ){
    db_set("last-sync-url", g.urlCanonical, 0);
    if( g.urlPasswd ) db_set("last-sync-pw", g.urlPasswd, 0);
  }
  if( g.urlUser!=0 && g.urlPasswd==0 ){
    if( zPw==0 ){
      url_prompt_for_password();
    }else{
      g.urlPasswd = mprintf("%s", zPw);
    }
  }
  user_select();
  if( g.argc==2 ){
    printf("Server:    %s\n", g.urlCanonical);
  }
  url_enable_proxy("via proxy: ");
}