chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version protocol
[ypp-sc-tools.db-test.git]
/
pctb
/
dictionary-update-receiver
diff --git
a/pctb/dictionary-update-receiver
b/pctb/dictionary-update-receiver
index 35b17049ef2dafc1592af6bd17be8f20b69b3652..25a6dfc3639a840edbb7b045341b1cdac241d3c6 100755
(executable)
--- a/
pctb/dictionary-update-receiver
+++ b/
pctb/dictionary-update-receiver
@@
-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()." ?";