PyukiWiki CVS Commit
pyuki****@lists*****
2012年 3月 1日 (木) 15:43:50 JST
Index: PyukiWiki-Devel/lib/urlhack.inc.pl diff -u PyukiWiki-Devel/lib/urlhack.inc.pl:1.483 PyukiWiki-Devel/lib/urlhack.inc.pl:1.484 --- PyukiWiki-Devel/lib/urlhack.inc.pl:1.483 Thu Mar 1 15:19:59 2012 +++ PyukiWiki-Devel/lib/urlhack.inc.pl Thu Mar 1 15:43:50 2012 @@ -1,6 +1,6 @@ ###################################################################### # urlhack.inc.pl - This is PyukiWiki, yet another Wiki clone. -# $Id: urlhack.inc.pl,v 1.483 2012/03/01 06:19:59 papu Exp $ +# $Id: urlhack.inc.pl,v 1.484 2012/03/01 06:43:50 papu Exp $ # # "PyukiWiki" version 0.2.0-p2-preview6 $$ # Author: Nanami http://nanakochi.daiba.cx/ @@ -29,7 +29,7 @@ if(!defined($urlhack::use_path_info)); # # fake extension 拡張子偽装 -$urlhack::fake_extention="/" # use path_info, only "/" +$urlhack::fake_extention="/" # only "/" if(!defined($urlhack::fake_extention)); # # use puny url 0:16進エンコード 1:punyエンコード 2:UTF8エンコード 3:短縮URL @@ -49,30 +49,24 @@ if(!defined($urlhack::shortdb)); ################### -# sample of puny +# sample of shorted wiki url ## PATH_INFO を使う(0の場合File not foundを補足する) -#$urlhack::use_path_info=0 -# if(!defined($urlhack::use_path_info)); +#$urlhack::use_path_info=0; ## ## fake extension 拡張子偽装 -#$urlhack::fake_extention="" # use path_info, only "/" -# if(!defined($urlhack::fake_extention)); +#$urlhack::fake_extention=""; # use path_info, only "/" ## ## use puny url 0:16進エンコード 1:punyエンコード 2:UTF8エンコード 3:短縮URL -#$urlhack::use_puny=3 -# if(!defined($urlhack::use_puny)); +#$urlhack::use_puny=3; ## ## not convert Alphabet or Number ( or dot and slash) page -#$urlhack::noconvert_marks=0 # 0:NO / 1:Alpha&Number / 2:AlphaNumber and mark -# if(!defined($urlhack::noconvert_marks)); +#$urlhack::noconvert_marks=0; # 0:NO / 1:Alpha&Number / 2:AlphaNumber and mark ## ## force url hack (non extention .cgi) -#$urlhack::force_exec=1 # PATH_INFOを使わない場合で、拡張子CGIでない場合、1を設定 -# if(!defined($urlhack::force_exec)); +#$urlhack::force_exec=1; # PATH_INFOを使わない場合で、拡張子CGIでない場合1を設定 # ## 短縮URLのDB(言語考慮不要) -#$urlhack::shortdb="./wikidb" -# if(!defined($urlhack::shortdb)); +#$urlhack::shortdb="./wikidb"; # ###################################################################### @@ -202,12 +196,11 @@ } else { return 0; } - # ?以降は無視する # comment $req=~s/\?.*//g; # dot(.)とslash(/)が有効の場合 # comment - if($urlhack::noconvert_marks eq 2) { + if($urlhack::noconvert_marks eq 2 || 1) { my $uri; # 自URIを取得し、削除する if($req ne '') {