chiark / gitweb /
odin-cgi
8 years agomason/pastebin/, static/odin.css: Cope if client doesn't send cookies.
Mark Wooding [Mon, 6 Jul 2015 11:36:22 +0000 (12:36 +0100)]
mason/pastebin/, static/odin.css: Cope if client doesn't send cookies.

Previously the edit key would just get lost.  Instead, detect the
situation and show a page with a fierce warning: because we can't hide
the edit key anywhere other than the actual page URL, the link is unsafe
to share, so it's important to make it obvious which link is safe.

8 years agomason/pastebin/dhandler: Some small refactorings.
Mark Wooding [Mon, 6 Jul 2015 11:34:33 +0000 (12:34 +0100)]
mason/pastebin/dhandler: Some small refactorings.

8 years agomason/pastebin/%show: The `edit' argument is never omitted.
Mark Wooding [Mon, 6 Jul 2015 11:29:40 +0000 (12:29 +0100)]
mason/pastebin/%show: The `edit' argument is never omitted.

So there's no point in making it optional.

8 years agouserv.rc: New example Userv configuration file.
Mark Wooding [Sat, 4 Jul 2015 16:57:44 +0000 (17:57 +0100)]
userv.rc: New example Userv configuration file.

8 years agosql/setup-shorturl.sql: Add index by (url, owner).
Mark Wooding [Sat, 4 Jul 2015 17:02:40 +0000 (18:02 +0100)]
sql/setup-shorturl.sql: Add index by (url, owner).

When we're trying to create a new entry, we search for an existing entry
for the same URL and a similar owner.  The index means we avoid having
to do a full scan of the table for this.

8 years agosql/setup-shorturl.sql: Drop old tables if they're missing.
Mark Wooding [Sat, 4 Jul 2015 17:00:45 +0000 (18:00 +0100)]
sql/setup-shorturl.sql: Drop old tables if they're missing.

8 years agosql/setup-pastebin.sql: Missing comma.
Mark Wooding [Sat, 4 Jul 2015 16:57:17 +0000 (17:57 +0100)]
sql/setup-pastebin.sql: Missing comma.

8 years agobin/populate-lang-table: Store description with new language.
Mark Wooding [Sat, 4 Jul 2015 16:56:50 +0000 (17:56 +0100)]
bin/populate-lang-table: Store description with new language.

Stupid bug fix.

8 years agoInitial commit.
Mark Wooding [Fri, 3 Jul 2015 19:23:08 +0000 (20:23 +0100)]
Initial commit.

Seems to work.  Mostly.