Home > Perl > CGIプログラミング第2版 その1:CGI.pmの準備

CGIプログラミング第2版 その1:CGI.pmの準備

4章まで読み終わった。(遅い!)
いよいよCGI.pmをバリバリ使っていくぞ!
・・・と、思いきや、なんか準備がいるそうで。

P.99によると、
アップロードされたファイルを自動で保存する機能が、
デフォルトでONになっているそう。
(しかもファイルサイズ無制限)

そりゃ怖いので、早速チェックしてみた。
※ 今まで何もせずにuse CGI;しちゃってたけど^^;

perl -MCGI -e 'print $INC{"CGI.pm"},"\n";'
/System/Library/Perl/5.10.0/CGI.pm
※ Class::Inspector - Perlモジュールのファイルパスを取得 Kawa.netブログ(川崎有亮)/ウェブリブログ

cat -n /System/Library/Perl/5.10.0/CGI.pm | head -99 | tail -6
    94	    # Set this to a positive value to limit the size of a POSTing
    95	    # to a certain number of bytes:
    96	    $POST_MAX = -1;
    97	
    98	    # Change this to 1 to disable uploads entirely:
    99	    $DISABLE_UPLOADS = 0;

おぉ、ホントだ。。
今のバージョンは違うかなぁとか思ったけど、本の通りだー。

修正しておこう。
(方法はp.100参照。そこまで書いちゃうと著作権的にOUTなので)

Comments:1

ed hardy boots URL 2010-07-05 (月) 15:38

アップロードされたファイルを自動で保存する機能が、
デフォルトでONになっているそう。 <strong><a href="http://www.tiffanyesale.com/">buy tiffany jewellery</a></strong>

Comment Form

Trackback+Pingback:1

TrackBack URL for this entry
http://blog.bornneet.com/TrackBack/241/
Listed below are links to weblogs that reference
CGIプログラミング第2版 その1:CGI.pmの準備 from Born Neet
Trackback from 2010-01-15 (金) 16:15

無題

(more…)

Home > Perl > CGIプログラミング第2版 その1:CGI.pmの準備

Page Top