瀏覽代碼

Make Unicode file and directory names available.

Balázs Indig 11 年之前
父節點
當前提交
93df708bf5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/pico.php

+ 1 - 0
lib/pico.php

@@ -43,6 +43,7 @@ class Pico {
 		// Get the file path
 		// Get the file path
 		if($url) $file = CONTENT_DIR . $url;
 		if($url) $file = CONTENT_DIR . $url;
 		else $file = CONTENT_DIR .'index';
 		else $file = CONTENT_DIR .'index';
+		$file=urldecode($file);
 
 
 		// Load the file
 		// Load the file
 		if(is_dir($file)) $file = CONTENT_DIR . $url .'/index'. CONTENT_EXT;
 		if(is_dir($file)) $file = CONTENT_DIR . $url .'/index'. CONTENT_EXT;