From df05f8de89a10e07fc8677ab9594e1a485990d5e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Jul 2009 20:21:29 +0100 Subject: [PATCH] Version protocol --- pctb/dictionary-update-receiver | 8 ++++++++ 1 file changed, 8 insertions(+) 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()." ?"; -- 2.30.2