chiark / gitweb /
chopwood
6 years agochpwd: Set default config file from environment variable `CHPWD_CONFIG'.
Mark Wooding [Tue, 12 Mar 2013 04:17:59 +0000 (04:17 +0000)]
chpwd: Set default config file from environment variable `CHPWD_CONFIG'.

This is more convenient to set from webserver CGI configurations and SSH
`authorized_keys' files.

6 years agocmd-cgi.py: Typo in help message for the CGI `source' command.
Mark Wooding [Mon, 11 Mar 2013 22:43:45 +0000 (22:43 +0000)]
cmd-cgi.py: Typo in help message for the CGI `source' command.

6 years agocmd-admin.py: Add `source' command to remote command context.
Mark Wooding [Sat, 9 Mar 2013 05:50:44 +0000 (05:50 +0000)]
cmd-admin.py: Add `source' command to remote command context.

Now remote-control clients can fetch our source code too.  Question:
should the master instance fetch source code for all of its satellites?

6 years agoPut the user's name in post-authentication requests.
Mark Wooding [Sat, 9 Mar 2013 05:31:13 +0000 (05:31 +0000)]
Put the user's name in post-authentication requests.

In GET requests, it goes in the path; for POST requests, it can go in
`%user'.  This is to prevent caches from returning the wrong pages.  I
feel a bit stupid about not fixing this earlier.

6 years agoKeep track of whether a CGI request is carried over SSL.
Mark Wooding [Sat, 9 Mar 2013 05:29:10 +0000 (05:29 +0000)]
Keep track of whether a CGI request is carried over SSL.

If it is, then tie the cookie so that it's only returned to us over
SSL-encrypted links.

6 years agocgi.py (cookie): Exclude attribute keys whose value is false.
Mark Wooding [Sat, 9 Mar 2013 05:27:29 +0000 (05:27 +0000)]
cgi.py (cookie): Exclude attribute keys whose value is false.

6 years agocgi.py: Fix stupid typo so that HTTP status codes are returned properly.
Mark Wooding [Sat, 9 Mar 2013 05:34:26 +0000 (05:34 +0000)]
cgi.py: Fix stupid typo so that HTTP status codes are returned properly.

6 years ago*.fhtml: Use double quotes for HTML attributes.
Mark Wooding [Fri, 8 Mar 2013 07:23:16 +0000 (07:23 +0000)]
*.fhtml: Use double quotes for HTML attributes.

Makes them highlight better in Emacs.

6 years ago*.fhtml: Use proper apostrophes instead of the awful ASCII one.
Mark Wooding [Fri, 8 Mar 2013 07:20:04 +0000 (07:20 +0000)]
*.fhtml: Use proper apostrophes instead of the awful ASCII one.

6 years agocookies.fhtml: Use correct link for the source code archive.
Mark Wooding [Fri, 8 Mar 2013 07:13:36 +0000 (07:13 +0000)]
cookies.fhtml: Use correct link for the source code archive.

6 years agocgi.py: Remove defunct `html' function.
Mark Wooding [Fri, 8 Mar 2013 07:12:25 +0000 (07:12 +0000)]
cgi.py: Remove defunct `html' function.

6 years agocgi.py: Remove the old error reporting machinery.
Mark Wooding [Fri, 8 Mar 2013 07:11:26 +0000 (07:11 +0000)]
cgi.py: Remove the old error reporting machinery.

It's all in templates now.

6 years agoMakefile: Update the `auto.py' symlink correctly.
Mark Wooding [Fri, 8 Mar 2013 02:53:11 +0000 (02:53 +0000)]
Makefile: Update the `auto.py' symlink correctly.

6 years agoInitial commit.
Mark Wooding [Thu, 7 Mar 2013 18:47:57 +0000 (18:47 +0000)]
Initial commit.