From 35c15f5da6587f3577a5fd852a5d0f3d3b9f4568 Mon Sep 17 00:00:00 2001 From: haneul Date: Mon, 9 Mar 2009 03:47:57 +0000 Subject: [PATCH] #17756508 : change newline into PHP_EOL to make it compatible to windows git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5805 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/issuetracker/classes/svn.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/issuetracker/classes/svn.class.php b/modules/issuetracker/classes/svn.class.php index ec370b10e..4952f74de 100644 --- a/modules/issuetracker/classes/svn.class.php +++ b/modules/issuetracker/classes/svn.class.php @@ -80,8 +80,7 @@ ); $buff = $this->execCmd($command, $error); - - $list = explode("\n",$buff); + $list = explode(PHP_EOL,$buff); if(!count($list)) return null; @@ -365,7 +364,7 @@ function explodePath($source_path, $is_file = false) { if(!$source_path) return; - + $source_path = rtrim($source_path); $arr_path = explode('/', $source_path); if(substr($source_path,-1)!='/') $file = array_pop($arr_path);