stas 2003/08/29 19:56:40 Modified: src/docs/2.0/api/Apache RequestUtil.pod Log: document the newly added function: slurp_filename Revision Changes Path 1.4 +16 -0 modperl-docs/src/docs/2.0/api/Apache/RequestUtil.pod Index: RequestUtil.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/RequestUtil.pod,v retrieving revision 1.3 retrieving revision 1.4 diff -u -u -r1.3 -r1.4 --- RequestUtil.pod 13 Mar 2003 01:05:33 -0000 1.3 +++ RequestUtil.pod 30 Aug 2003 02:56:40 -0000 1.4 @@ -64,4 +64,20 @@ =head2 get_handlers() +=head2 slurp_filename() + + my $ref_content = $r->slurp_filename([$tainted]); + +Return a reference to contents of C<$r-E<gt>filename>. + +By default the returned data is tainted (if run under C<-T>). If an +optional C<$tainted> flag is set to zero, the data will be marked as +non-tainted. Do not set this flag to zero unless you know what you are +doing, you may create a security hole in your program if you do. For +more information see the I<perlsec> manpage. If you wonder why this +option is available, it is used internally by the +C<L<ModPerl::Registry|docs::2.0::api::ModPerl::Registry>> handler and +friends, because the CGI scripts that it reads are considered safe +(you could just as well C<require()> them). + =cut
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]