Edgewall Software

Opened 12 years ago

Last modified 7 years ago

#519 new enhancement

[PATCH] TemplateLoader.load refactor to support sandboxed absolute xi:include paths

Reported by: jason kirtland <jek@…> Owned by: cmlenz
Priority: minor Milestone: 0.9
Component: General Version: devel
Keywords: Cc:

Description

For our application we needed "/index.html" to resolve to "/search/path/index.html" rather than be absolute within the host's full filesystem. Attached is a patch which refactors TemplateLoader?.load() such that the interpretation of /absoluteness and the normalization of relative paths is pushed into an overridable method.

There are no behavioral changes introduced by the patch, and all tests continue to pass.

Attachments (1)

abspath_resolution.diff (4.0 KB) - added by jason kirtland <jek@…> 12 years ago.
Diff against trunk r1185

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by jason kirtland <jek@…>

Diff against trunk r1185

comment:1 Changed 7 years ago by hodgestar

  • Milestone changed from 0.7 to 0.9

Moved to milestone 0.9.

Note: See TracTickets for help on using tickets.