[rt-users] Problem with interpretation of images
Ruslan Zakirov
ruz at bestpractical.com
Mon Jun 4 10:51:50 EDT 2012
On Mon, Jun 4, 2012 at 5:53 PM, Thomas Sibley <trs at bestpractical.com> 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.
More information about the rt-users
mailing list