*閲覧許可が無いページの添付ファイルが一覧に表示されてしまう。 [#vb255527] -ページ: BugTrack -投稿者: [[squld]] -優先順位: 低 -状態: 提案 -カテゴリー: プラグイン -投稿日: 2003-09-29 (月) 18:29:38 -バージョン: 1.4rc4 **メッセージ [#n7f4bea3] [[全ページの添付ファイル一覧>http://pukiwiki.sourceforge.jp/dev/index?plugin=attach&pcmd=list]]画面で閲覧許可が無いページの添付ファイルまで表示されます。閲覧許可があるページの添付ファイルのみが表示されるほうが良いのではないでしょうか? ↓こんな感じの修正? attach.inc.php while ($file = readdir($dir)) { if (!preg_match($pattern,$file,$matches)) { continue; } $_page = decode($matches[1]); + if(!check_readable($_page,false,false)) + { + continue; + } $_file = decode($matches[2]); $_age = array_key_exists(3,$matches) ? $matches[3] : 0; if (!array_key_exists($_page,$this->pages)) { $this->pages[$_page] = &new AttachFiles($_page); } $this->pages[$_page]->add($_file,$_age); } ---- #comment