X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fdictionary-update-receiver;fp=pctb%2Fdictionary-update-receiver;h=25a6dfc3639a840edbb7b045341b1cdac241d3c6;hb=df05f8de89a10e07fc8677ab9594e1a485990d5e;hp=35b17049ef2dafc1592af6bd17be8f20b69b3652;hpb=1ab1d19b234373baf7d36296809927aa9cee5023;p=ypp-sc-tools.db-test.git 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()." ?";