/////////////////////////////////////////////////
// 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 ¤Î¥Ç¡¼¥¿(²èÁü¥Õ¥¡¥¤¥ë¤Î¤ß)¤ËľÀÜ¥¢¥¯¥»¥¹¤µ¤»¤ë
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;