chiark / gitweb /
Version protocol
[ypp-sc-tools.db-live.git] / pctb / dictionary-update-receiver
index 35b17049ef2dafc1592af6bd17be8f20b69b3652..25a6dfc3639a840edbb7b045341b1cdac241d3c6 100755 (executable)
@@ -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()." ?";