git.shiar.nl
/
perl
/
plp
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generalize reading post input
[perl/plp/.git]
/
PLP
/
Apache.pm
diff --git
a/PLP/Apache.pm
b/PLP/Apache.pm
index c3880957e7a405ad9a34dc4ad37d1207eacbf718..bc788811252a533e48457aca4529033cc1325b2a 100644
(file)
--- a/
PLP/Apache.pm
+++ b/
PLP/Apache.pm
@@
-26,6
+26,7
@@
sub init {
our $r = shift;
$PLP::print = 'PLP::Apache::print';
our $r = shift;
$PLP::print = 'PLP::Apache::print';
+ $PLP::read = \&read;
$ENV{PLP_FILENAME} = my $filename = $r->filename;
$ENV{PLP_FILENAME} = my $filename = $r->filename;
@@
-49,6
+50,12
@@
sub init {
return 0; # OK
}
return 0; # OK
}
+sub read ($) {
+ my ($bytes) = @_;
+ $r->read(my $data, $bytes);
+ return $data;
+}
+
# FAST printing under mod_perl
sub print {
return unless grep length, @_;
# FAST printing under mod_perl
sub print {
return unless grep length, @_;