MFB - use realPath here.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 13 Feb 2010 17:51:21 +0000 (12:51 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 13 Feb 2010 17:51:21 +0000 (12:51 -0500)
Bug: 8760

ansel/scripts/recursive_import.php
ansel/scripts/remote_import.php

index 598db2a..e8b9b9c 100755 (executable)
@@ -125,6 +125,7 @@ function processDirectory($dir, $parent = null)
 {
     global $cli;
 
+    $dir = Horde_Util::realPath($dir);
     if (!is_dir($dir)) {
         $cli->fatal(sprintf(_("\"%s\" is not a directory."), $dir));
     }
index d942112..c465cc8 100755 (executable)
@@ -148,6 +148,7 @@ function processDirectory($dir, $parent = null, $gallery_id = null, $slug = null
 {
     global $cli, $rpc_auth, $rpc_endpoint;
 
+    $dir = Horde_Util::realPath($dir);
     if (!is_dir($dir)) {
         $cli->fatal(sprintf(_("\"%s\" is not a directory."), $dir));
     }