chiark / gitweb /
Version protocol
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 4 Jul 2009 19:21:29 +0000 (20:21 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 4 Jul 2009 19:21:29 +0000 (20:21 +0100)
pctb/dictionary-update-receiver

index 35b17049ef2dafc1592af6bd17be8f20b69b3652..25a6dfc3639a840edbb7b045341b1cdac241d3c6 100755 (executable)
@@ -161,6 +161,14 @@ sub pipeval ($@) {
 
 #---------- determine properties of the submission ----------
 
 
 #---------- 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()." ?";
 my $dict= param('dict');
 my $entry_in= param('entry');
 defined $entry_in or die Dump()." ?";