[Svn-src-all:1521] [version-2_5-dev 20417] refs #1016 #515
shutta
admin @ mail.ec-cube.net
2011年 2月 26日 (土) 18:32:43 JST
Subversion committed to /home/svn/open 20417
http://svn.ec-cube.net/open_trac/changeset/20417
┌────────────────────────────┐
│更新者 : shutta │
│更新日時: 2011-02-26 18:32:43 +0900 (土, 26 2月 2011)│
└────────────────────────────┘
Log:
--------------------------------------------------------
refs #1016 #515
PHP5.3での非推奨関数split()での実装部分を書き換え。(for #515)
ファイル拡張子取得部分を直感的に分かりやすいように変更。(for #1016)
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
U 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
===================================================================
--- branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php 2011-02-26 02:40:13 UTC (rev 20416)
+++ branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php 2011-02-26 09:32:43 UTC (rev 20417)
@@ -123,11 +123,9 @@
'js',
);
- // 拡張子取得
- $arrResult = split('\.', $objFormParam->getValue('file'));
- $ext = $arrResult[count($arrResult)-1];
+ $extension = pathinfo($objFormParam->getValue('file'), PATHINFO_EXTENSION);
- if (!preg_match('|\./|', $file) && in_array($ext, $arrViewFile)) {
+ if (!preg_match('|\./|', $file) && in_array($extension, $arrViewFile)) {
$file_check_flg = true;
}
Svn-src-all メーリングリストの案内