chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
routetrade: Fix suppresed trades: suppress by removing from @subflows
[ypp-sc-tools.db-live.git]
/
yarrg
/
commod-update-receiver
diff --git
a/yarrg/commod-update-receiver
b/yarrg/commod-update-receiver
index 889913d3c6b717a5ebc41c71179c16072cf73860..d01b6de1753c3cbfac8b7751d0266c5af36a0116 100755
(executable)
--- a/
yarrg/commod-update-receiver
+++ b/
yarrg/commod-update-receiver
@@
-35,7
+35,7
@@
$CGI::POST_MAX= 3*1024*1024;
use CGI qw/:standard -private_tempfiles/;
use CGI qw/:standard -private_tempfiles/;
-set
locale(LC_CTYPE, "en_GB.UTF-8"
);
+set
_ctype_utf8(
);
our $now= time; defined $now or die $!;
our $now= time; defined $now or die $!;
@@
-49,7
+49,7
@@
sub fail ($) {
print header(-status=>'400 Bad commodity update',
-type=>'text/plain',
-charset=>'us-ascii');
print header(-status=>'400 Bad commodity update',
-type=>'text/plain',
-charset=>'us-ascii');
- print "Error: $msg\n";
+ print "
\n
Error: $msg\n";
exit 0;
}
exit 0;
}
@@
-110,6
+110,8
@@
$o{'island'}= must_param('island', $re_any);
my $arches= $oceans{$o{'ocean'}};
fail("unknown ocean") unless $arches;
my $arches= $oceans{$o{'ocean'}};
fail("unknown ocean") unless $arches;
+parse_info_serverside_ocean($o{'ocean'});
+
my $island_found= 0;
foreach my $islands (values %$arches) {
my $sources= $islands->{$o{'island'}};
my $island_found= 0;
foreach my $islands (values %$arches) {
my $sources= $islands->{$o{'island'}};
@@
-133,9
+135,10
@@
foreach my $mid (<_mid-*.hold>) {
unlink $mid or $!==&ENOENT or die "$mid $!";
}
unlink $mid or $!==&ENOENT or die "$mid $!";
}
+$o{'instance'}= $ENV{'YARRG_INSTANCE'};
my $mcontent= MIME::Entity->build(To => 'yarrg-commod-updates',
my $mcontent= MIME::Entity->build(To => 'yarrg-commod-updates',
- Subject => $
pwd
,
+ Subject => $
ENV{'YARRG_INSTANCE'}
,
Type => 'multipart/mixed',
Boundary => '=',
'Message-ID' => $mid,
Type => 'multipart/mixed',
Boundary => '=',
'Message-ID' => $mid,