X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fdictionary-update-receiver;h=25cdf0a71d249ce458c976c43aa35250ca704400;hb=c4232b7d54164bd7a36ff9b0bde86ce23f9adcfa;hp=35b17049ef2dafc1592af6bd17be8f20b69b3652;hpb=1ab1d19b234373baf7d36296809927aa9cee5023;p=ypp-sc-tools.db-live.git diff --git a/pctb/dictionary-update-receiver b/pctb/dictionary-update-receiver index 35b1704..25cdf0a 100755 --- a/pctb/dictionary-update-receiver +++ b/pctb/dictionary-update-receiver @@ -161,6 +161,16 @@ 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 YPP SC PCTB client is out of date". + " ($version, $spec_aadepth)"); + 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()." ?";