diff --git a/SourceSFSVN/SourceSFSVN.php b/SourceSFSVN/SourceSFSVN.php index 593f2e3..a4e91a5 100644 --- a/SourceSFSVN/SourceSFSVN.php +++ b/SourceSFSVN/SourceSFSVN.php @@ -172,7 +172,7 @@ $t_url = $p_repo->url; $t_revision = $p_matches[1]; - $t_svnlog = explode( "\n", `$svn log -v $t_url -r$t_revision` ); + $t_svnlog = explode( "\n", shell_exec( "$svn log -v $t_url -r$t_revision" ) ); if ( SourceChangeset::exists( $p_repo->id, $t_revision ) ) { echo "Revision $t_revision already committed!\n"; @@ -200,7 +200,7 @@ $t_url = $p_repo->url; $t_rev = $t_db_revision + 1; - $t_svnlog = explode( "\n", `$svn log -v -r $t_rev:HEAD --limit 200 $t_url` ); + $t_svnlog = explode( "\n", shell_exec( "$svn log -v -r $t_rev:HEAD --limit 200 $t_url" ) ); return $this->process_svn_log( $p_repo, $t_svnlog ); } @@ -216,7 +216,7 @@ function check_svn() { $svn = $this->svn_call(); - if ( is_blank( `$svn help` ) ) { + if ( is_blank( shell_exec( "$svn help" ) ) ) { trigger_error( ERROR_GENERIC, ERROR ); } } diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php index 614e074..868b00b 100644 --- a/SourceWebSVN/SourceWebSVN.php +++ b/SourceWebSVN/SourceWebSVN.php @@ -194,7 +194,7 @@ $t_url = $p_repo->url; $t_revision = $p_matches[1]; - $t_svnlog = explode( "\n", `$svn log -v $t_url -r$t_revision` ); + $t_svnlog = explode( "\n", shell_exec( "$svn log -v $t_url -r$t_revision" ) ); if ( SourceChangeset::exists( $p_repo->id, $t_revision ) ) { echo "Revision $t_revision already committed!\n"; @@ -222,7 +222,7 @@ $t_url = $p_repo->url; $t_rev = ( false === $t_db_revision ? 0 : $t_db_revision + 1 ); - $t_svnlog = explode( "\n", `$svn log -v -r $t_rev:HEAD --limit 200 $t_url` ); + $t_svnlog = explode( "\n", shell_exec( "$svn log -v -r $t_rev:HEAD --limit 200 $t_url" ) ); return $this->process_svn_log( $p_repo, $t_svnlog ); } @@ -238,7 +238,7 @@ function check_svn() { $svn = $this->svn_call(); - if ( is_blank( `$svn help` ) ) { + if ( is_blank( shell_exec( "$svn help" ) ) ) { trigger_error( ERROR_GENERIC, ERROR ); } }