From: Ian Jackson Date: Sat, 4 Jul 2009 19:21:29 +0000 (+0100) Subject: Version protocol X-Git-Tag: 1.9.2~23 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=df05f8de89a10e07fc8677ab9594e1a485990d5e Version protocol --- diff --git a/pctb/dictionary-update-receiver b/pctb/dictionary-update-receiver index 35b1704..25a6dfc 100755 --- a/pctb/dictionary-update-receiver +++ b/pctb/dictionary-update-receiver @@ -161,6 +161,14 @@ sub pipeval ($@) { #---------- determine properties of the submission ---------- +my $version= param('version'); +my $spec_aadepth= param('depth'); +if ($version ne '3' || $spec_aadepth ne $aadepth) { + print header('text/plain','403 Client out of date'); + print "\nYour YPP SC client is out of date.\n"; + exit 0; +} + my $dict= param('dict'); my $entry_in= param('entry'); defined $entry_in or die Dump()." ?";