On Mon, Jun 4, 2012 at 5:53 PM, Thomas Sibley <[email protected]> wrote: > On 06/04/2012 08:57 AM, Alexander Reintzsch wrote: >> I face a problem with images I put in >> /opt/rt4/local/plugins/RTx-MyPlugin/html/NoAuth/img >> >> Some pictures are loaded correctly and some cause errors. >> >> The reason for this is, that the picture-files are interpreted by the >> perl-interpreter and if the file contains a <% or <$ or simular things, >> that the interpreter is looking for, it throws an error. >> >> What can I do to fix this? > > Use an autohandler to serve the images statically instead of through > Mason automatically. See how core RT does this in > share/html/NoAuth/images/autohandler
I would recommend to put them into html/NoAuth/images/my-ext-prefix-xxxx.image. This way they served by RT's autohandler and you don't need to duplicate it. I don't remember if you can use subdirectory or not, try html/NoAuth/images/my-extnsion/xxx.image. > Thomas -- Best regards, Ruslan.
