From 9a0e61f0cbba708600dc311ccfb9de732bf558d4 Mon Sep 17 00:00:00 2001 From: henoheno Date: Mon, 23 Aug 2004 23:59:11 +0900 Subject: [PATCH] Cleanup about $file --- plugin/ref.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/ref.inc.php b/plugin/ref.inc.php index fff7256..3f66e51 100644 --- a/plugin/ref.inc.php +++ b/plugin/ref.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: ref.inc.php,v 1.30 2004/08/21 02:36:57 henoheno Exp $ +// $Id: ref.inc.php,v 1.31 2004/08/23 14:59:11 henoheno Exp $ // // UPLOAD_DIR ¤Î¥Ç¡¼¥¿(²èÁü¥Õ¥¡¥¤¥ë¤Î¤ß)¤ËľÀÜ¥¢¥¯¥»¥¹¤µ¤»¤ë @@ -204,17 +204,17 @@ function plugin_ref_body($args) return $params; } - // ¥Ú¡¼¥¸»ØÄê¤Î¥Á¥§¥Ã¥¯ + // ¥Ú¡¼¥¸Ì¾¤È¥Õ¥¡¥¤¥ë̾¤Îʬ²ò (pagename/separated/with/slash/FILENAME) if (preg_match('/^(.+)\/([^\/]+)$/', $name, $matches)) { if ($matches[1] == '.' || $matches[1] == '..') { $matches[1] .= '/'; } - $page = get_fullname($matches[1],$page); + $page = get_fullname($matches[1], $page); $name = $matches[2]; } $title = htmlspecialchars($name); - $file = UPLOAD_DIR . encode($page) . '_' . encode($name); + $file = UPLOAD_DIR . encode($page) . '_' . encode($name); if (! is_file($file)) { $params['_error'] = 'File not found'; return $params; -- 2.11.0