[Rt-devel] bug in standalone server image handling
Hans Dieter Pearcey
hdp.rt.devel at weftsoar.net
Fri Sep 19 17:33:36 EDT 2008
share/html/NoAuth/images/autohandler purports to serve images directly, before
Mason gets a chance to. However, Mason loads (that is, compiles)
$m->request_comp as soon as the request object is created, so the autohandler
doesn't actually get a chance to intervene in the case where the image file
being requested has a Mason syntax error.
The attached patch includes a test and a fix for the standalone server.
Similar solutions are probably needed for running under mod_perl or fastcgi.
hdp.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: standalone-image.patch
Type: text/x-diff
Size: 2540 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20080919/7de0a688/attachment.patch
More information about the Rt-devel
mailing list