]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
fixes and more tests
[ikiwiki.git] / IkiWiki.pm
index a547c57efb00f9c9f5c719994916714d10accaf9..32ca0449fb81c4c59db6a3548f713e86e11b43bf 100644 (file)
@@ -881,7 +881,7 @@ sub match_glob ($$$) { #{{{
        if ($glob =~ m!^\./!) {
                $from=~s!/?[^/]+$!!;
                $glob=~s!^\./!!;
-               $glob="$from/$glob";
+               $glob="$from/$glob" if length $from;
        }
 
        # turn glob into safe regexp