Check-in [a928c89cb1]
Not logged in

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

Overview
Comment:Fix the SSH transport method so that it allows everything, without regard to user permissions.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a928c89cb187c3fc4275474c330cdf4e6a732710
User & Date: drh 2012-02-06 18:18:17.368
Context
2012-02-07
00:01
Change back to using minimum edit distance for computing similarity of lines for alignment in side-by-side diff change blocks. check-in: 51bda5e441 user: drh tags: trunk
2012-02-06
18:18
Fix the SSH transport method so that it allows everything, without regard to user permissions. check-in: a928c89cb1 user: drh tags: trunk
17:47
The "smhdr" query parameter on the finfo pages gives a more compact header without the detailed object descriptions. check-in: af30a9ab46 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
1601
1602
1603
1604
1605
1606
1607
1608


1609
1610
1611
1612
1613
1614
1615
/*
** Note that the following command is used by ssh:// processing.
**
** COMMAND: test-http
** Works like the http command but gives setup permission to all users.
*/
void cmd_test_http(void){
  login_set_capabilities("s", 0);


  g.httpIn = stdin;
  g.httpOut = stdout;
  find_server_repository(0);
  g.cgiOutput = 1;
  g.fullHttpReply = 1;
  cgi_handle_http_request(0);
  process_one_web_page(0);







|
>
>







1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
/*
** Note that the following command is used by ssh:// processing.
**
** COMMAND: test-http
** Works like the http command but gives setup permission to all users.
*/
void cmd_test_http(void){
  login_set_capabilities("sx", 0);
  g.useLocalauth = 1;
  cgi_set_parameter("REMOTE_ADDR", "127.0.0.1");
  g.httpIn = stdin;
  g.httpOut = stdout;
  find_server_repository(0);
  g.cgiOutput = 1;
  g.fullHttpReply = 1;
  cgi_handle_http_request(0);
  process_one_web_page(0);