Index: branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php	(revision 20417)
+++ branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php	(revision 20418)
@@ -114,17 +114,5 @@
         $file = $objFormParam->getValue('file');
 
-        // ソースとして表示するファイルを定義(直接実行しないファイル)
-        $arrViewFile = array(
-            'html',
-            'htm',
-            'tpl',
-            'php',
-            'css',
-            'js',
-        );
-
-        $extension = pathinfo($objFormParam->getValue('file'), PATHINFO_EXTENSION);
-
-        if (!preg_match('|\./|', $file) && in_array($extension, $arrViewFile)) {
+        if (!preg_match('|\./|', $file)) {
             $file_check_flg = true;
         }
@@ -139,8 +127,26 @@
      */
     function execFileView($objFormParam) {
-        $objFileManager = new SC_Helper_FileManager_Ex();
-        // ファイルを読み込んで表示
-        header("Content-type: text/plain\n\n");
-        print($objFileManager->sfReadFile(USER_REALDIR . $objFormParam->getValue('file')));
+        $file = $objFormParam->getValue('file');
+
+        // ソースとして表示するファイルを定義(直接実行しないファイル)
+        $arrViewFile = array(
+            'html',
+            'htm',
+            'tpl',
+            'php',
+            'css',
+            'js',
+        );
+
+        $extension = pathinfo($file, PATHINFO_EXTENSION);
+
+        if (in_array($extension, $arrViewFile)) {
+            $objFileManager = new SC_Helper_FileManager_Ex();
+            // ファイルを読み込んで表示
+            header("Content-type: text/plain\n\n");
+            print($objFileManager->sfReadFile(USER_REALDIR . $file));
+        } else {
+            SC_Response_Ex::sendRedirect(USER_URL . $file);
+        }
     }
 }
