Ignore:
Timestamp:
2011/04/14 20:14:50 (15 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:20840
bzr:committer:
Kentaro Ohkouchi <[email protected]>
bzr:file-ids:

data/class/helper/SC_Helper_Purchase.php sc_helper_purchase.p-20101020100530-jyaoa7ch9pdfjqzp-1
data/class/pages/admin/design/LC_Page_Admin_Design.php 15680@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design.php
data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php 15687@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_Bloc.php
data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php 15682@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_MainEdit.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php 16530@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc.php
data/class/util/SC_Utils.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Futil%2FSC_Utils.php
test/class/util/SC_Utils_Test.php sc_utils_test.php-20100802013957-750m2yralg9cowkd-1
test/require.php require.php-20100726065552-t2b4u96mp8ikqvjf-1
bzr:mapping-version:
v4
bzr:merge:

[email protected]
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
[email protected]
bzr:revno:
3552
bzr:revprop:branch-nick:
branches/version-2_11-dev
bzr:root:
branches/version-2_11-dev
bzr:text-revisions:

data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php [email protected]
data/class/util/SC_Utils.php [email protected]
test/class/util/SC_Utils_Test.php [email protected]
test/require.php [email protected]
bzr:timestamp:
2011-04-14 20:14:46.348999977 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-04-14T11:14:46.349000Z
Message:

#1257 (絶対パスかどうかのチェックが Windows 環境を考慮していない)

  • SC_Utils::isAbsoluteRealPath() 追加
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/util/SC_Utils.php

    r20764 r20841  
    21942194        } 
    21952195    } 
     2196 
     2197    /** 
     2198     * パスが絶対パスかどうかをチェックする. 
     2199     * 
     2200     * 引数のパスが絶対パスの場合は true を返す. 
     2201     * この関数は, パスの存在チェックを行なわないため注意すること. 
     2202     * 
     2203     * @param string チェック対象のパス 
     2204     * @return boolean 絶対パスの場合 true 
     2205     */ 
     2206    function isAbsoluteRealPath($realpath) { 
     2207        if (strpos(PHP_OS, 'WIN') === false) { 
     2208            return (substr($realpath, 0, 1) == '/'); 
     2209        } else { 
     2210            return preg_match('/^[a-zA-Z]:(\\\|\/)/', $realpath) ? true : false; 
     2211        } 
     2212    } 
    21962213} 
    21972214?> 
Note: See TracChangeset for help on using the changeset viewer.