svnno****@sourc*****
svnno****@sourc*****
2010年 5月 1日 (土) 21:48:08 JST
Revision: 100 http://sourceforge.jp/projects/frameworkspider/svn/view?view=rev&revision=100 Author: m_nakashima Date: 2010-05-01 21:48:08 +0900 (Sat, 01 May 2010) Log Message: ----------- Modified Paths: -------------- 1.0.02/spider/lib/spider/BuildInformation.class.php -------------- next part -------------- Modified: 1.0.02/spider/lib/spider/BuildInformation.class.php =================================================================== --- 1.0.02/spider/lib/spider/BuildInformation.class.php 2010-05-01 12:47:18 UTC (rev 99) +++ 1.0.02/spider/lib/spider/BuildInformation.class.php 2010-05-01 12:48:08 UTC (rev 100) @@ -95,10 +95,10 @@ */ function getAgentPageBuildFilePath() { $virtual_root = APPLICATION_BASE_PATH; - if( preg_match('/^[a-zA-Z]\\:\\\\/', APPLICATION_BASE_PATH, $regmatch_array ) ) { + if( preg_match('/^[a-zA-Z]\\:\\\/', APPLICATION_BASE_PATH, $regmatch_array ) ) { // Windows対策ドライブをディレクトリとして変換 $drive_name = substr($regmatch_array[0],0,1); - $virtual_root = preg_replace('/^[a-zA-Z]\\:\\\\/' + $virtual_root = preg_replace('/^[a-zA-Z]\\:\\\/' ,$drive_name.DIRECTORY_SEPARATOR,$virtual_root ); } else { $virtual_root = substr($virtual_root,1); @@ -106,10 +106,10 @@ // 2009-12-16 実行ファイル作成パスをspiderの上層ディレクトリ起点とする if( !defined('SPIDER_USE_ABSOLUTE_BIN_PATH') || SPIDER_USE_ABSOLUTE_BIN_PATH === false ) { $cutPath = dirname(DIR_PATH_SPIDER_DATA); - if( preg_match('/^[a-zA-Z]\\:\\\\/', APPLICATION_BASE_PATH, $regmatch_array ) > 0 ) { + if( preg_match('/^[a-zA-Z]\\:\\\/', APPLICATION_BASE_PATH, $regmatch_array ) > 0 ) { // Windows対策ドライブをディレクトリとして変換 $driveName = substr($regmatch_array[0],0,1); - $cutPath = preg_replace('/^[a-zA-Z]\\:\\\\/' + $cutPath = preg_replace('/^[a-zA-Z]\\:\\\/' ,$driveName.DIRECTORY_SEPARATOR, $cutPath ); } $virtual_root = preg_replace('/^'.util_CharUtility::escapeRegxStr($cutPath).'/','',$virtual_root);