[PerlChina] 通过cgi.pm上传文件
fayland
fayland at gmail.com
Sun Jan 15 06:58:43 PST 2006
<LocationMatch "/(static|favicon.ico)">
SetHandler default-handler
</LocationMatch>
另外第一个问题大致可能是因为
my $filename = $q->param("file");
这样子默认传入的都似 untaint 模式的,需要将其过滤下才行。比如去掉 .. 之
类的。
黄叶 wrote:
> 另外我还发现一个问题。
> 就是我使用Alias 设定perl目录后。
> mod_perl把这个目录里所有的文件都当成了perl代码。
> 我传入一个jpg格式的图像文件都会被当成perl脚本来解析。我想是不是应该有
> 一个选项能够改变这种情况。
>
> 也请给位帮帮忙看看。
>
> 谢谢。
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
--
Fayland Lam // http://www.fayland.org/
More information about the China-pm
mailing list