OTRS block content or link in ticket

Moderator: crythias

Post Reply
rvwmgk
Znuny newbie
Posts: 55
Joined: 10 Mar 2015, 17:40
Znuny Version: OTRS 4 Free

OTRS block content or link in ticket

Post by rvwmgk »

Is there any way to block content or, even better, hyperlinks in a ticket?

Sometimes we get viruses. Example:

[no worries, email addresses and hyperlinks changed for confidentiality and safety purpose]

From: steven.name@isp.tld...
To: Rene Dear, register, Rites.info, Rites.sales, Rites.marketing
Date: 05/12/2015 13:48
Subject: Fw: important message

Hello!

New message, please read http://example.com/feelings.php

steven.name@hotmail.tld.



The link http://example.com/feelings.php will automatically turn into a hyperlink.

Is there any way to avoid that?

I tried the flwg in SysConfig :
- Framework -> Core::Web > Frontend::RichText
- Ticket -> Core::PostMaster > PostmasterAutoHTML2Text

But that ain't it.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS block content or link in ticket

Post by crythias »

email spam filters could help.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
voiprodrigo
Znuny newbie
Posts: 62
Joined: 03 Dec 2014, 18:49
Znuny Version: OTRS 4
Location: Portugal
Contact:

Re: OTRS block content or link in ticket

Post by voiprodrigo »

A way to have that integrated on OTRS would be to use a Output Filter (FilterContent). You'd need to develop a custom filter to strip out the <a> tags, leaving only the tag text, and this would happen before the template html is sent to the browser. Or, and perhaps easier (but more hackish), just add some jQuery to the bottom of the template to do the same thing (unwrap() may be useful).
Linux (Ubuntu 14.04.1 LTS) | MySQL 5.5.40 | OTRS 4.0.7
Post Reply