We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dfe55c commit e713f69Copy full SHA for e713f69
nota/default/nota.pl
@@ -259,6 +259,7 @@ sub nota_validate
259
if ($option eq "path"){
260
#ファイル名であるか(特にスラッシュの混入を防ぐ)
261
$text =~ s/(:|;|\/|\\|\r|\n)//g;
262
+ $text =~ s/^[\.]*//g;
263
$text =~ s/[\x00-\x08\x0B-\x1F]//g; #制御コードを消去
264
}
265
elsif ($option eq "uri" || $option eq "url"){
nota/default/read.cgi
@@ -40,6 +40,10 @@ sub main
40
if (!defined($page) || $page eq ""){
41
$page = 'home';
42
43
+
44
+ #バリデーション
45
+ ¬a_validate($page);
46
47
#ログイン情報の取得
48
local $login = NOTA::Login->new;
49
$login->getlogin(\%COOKIE);
0 commit comments