cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Larson <...@keow.org>
Subject MountTableMatcher '/' change?
Date Tue, 18 Jan 2005 21:32:17 GMT
Would it hurt anything to make this
change in the MountTableMatcher?

From:
    // Append a '/' at the end of the prefix
    // this avoids flat uri matching which would cause
    // exceptions in the sub sitemap!
    if (!prefix.endsWith("/")) {
        prefix = prefix + '/';
    }

To:
    // Append a '/' at the end of a not-empty prefix
    // this avoids flat uri matching which would cause
    // exceptions in the sub sitemap!
    if (!prefix.endsWith("/") && prefix.length() != 0) {
        prefix = prefix + '/';
    }

This change is to allow a mount-table to perform a
similar function as a passthrough mount, permitting
the mount-table'ed sitemap to match at the same
level as the "parent" sitemap.

WDYT?
--Tim Larson

Mime
View raw message