Commit 26f303de authored by Leigh Stoller's avatar Leigh Stoller

Bug fix to bad regex for image directory.

parent b21f4953
......@@ -376,7 +376,7 @@ if (defined($image)) {
basename($image->path());
# Watch for directory in original path, since basename
# drops he trailing slash.
if ($image->path() =~ /^\/$/) {
if ($image->IsDirPath()) {
$path .= "/";
}
if ($image->Update({"path" => $path})) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment