Skip to content

Commit

Permalink
fix for simplyfyPath in windows environment
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Apr 25, 2015
1 parent 1828ebb commit 094a4db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/index.php
Expand Up @@ -39,6 +39,7 @@
// helper function to simplify a path in itself
function simplifyPath( $path ) {
$ret = array();
$path = str_replace(DIRECTORY_SEPARATOR,'/',$path); // windows fix
foreach( explode( '/', $path ) as $p )
{
if( $p == '..' )
Expand Down Expand Up @@ -132,8 +133,7 @@ function simplifyPath( $path ) {
}

// .. as a fully qualified filename
// $strSchemaFQFilename = realpath( simplifyPath( $strConfigPath . ($isDemo?'demo/':'') . $strSchemaFilename) );
$strSchemaFQFilename = realpath($strConfigPath . ($isDemo?'demo/':'') . $strSchemaFilename );
$strSchemaFQFilename = realpath( simplifyPath( $strConfigPath . ($isDemo?'demo/':'') . $strSchemaFilename) );

if (false === is_readable($strSchemaFQFilename)) {
exitWithError('schema-file of config-file does not exist \'' . $strSchemaFQFilename . '\' (\'' . $strSchemaFilename. '\').');
Expand Down

0 comments on commit 094a4db

Please sign in to comment.