Emiliano wrote:
That's a feature. Midgard strips .html and .php. It's useful but maybe it shouldn't do it when it comes to attachments. However just name it test.htm and you should be fine.I'm almost certain that for blobs, it doesn't strip the .html.
Ok, I'm not sure but I think midgard_page_walk is the key, right? And the following code strips the .html, right?
if (part && strcmp(part, ".html") == 0) {
uri_len = part - rcfg->req->uri - rcfg->prelen;
uri = ap_pstrndup(rcfg->pool, rcfg->req->uri + rcfg->prelen, uri_len);
}
else {
uri = ap_pstrdup(rcfg->pool, rcfg->req->uri + rcfg->prelen);
uri_len = strlen(uri);
}
and than we have
[...]
/* Traverse the page structure */
for (tok = my_strtok(uri, '/'); tok; tok = my_strtok(NULL, '/')) {
if (!*tok) {
continue;
}
midgard_find_pathelement(dcfg, rcfg, tok);
[...]
so the uri is altered first and than we try to find the pathelement for each part of the uri. If I'm not mistaken, the search for blobs is done in midgard_find_pathelement. Therefore I would say the .html will be stripped for all kinds of pages and for blobs.
However I'm not very good in reading this code, so feel free to correct me :-)
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
