[otrs-cvs] FAQ/Kernel/Modules AgentFAQZoom.pm,1.36,1.37
"CVS commits notifications of OTRS.org" <[email protected]> Thu, 25 Apr 2013 02:27:10 +0000
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/FAQ/Kernel/Modules
In directory lancelot:/tmp/cvs-serv7486/Kernel/Modules
Modified Files:
AgentFAQZoom.pm
Log Message:
Follow-up fix for bug#9207 - FAQ links open in iframe.
Author: cr
Index: AgentFAQZoom.pm
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Modules/AgentFAQZoom.pm,v
retrieving revision 1.36
retrieving revision 1.37
diff -2 -u -d -r1.36 -r1.37
--- AgentFAQZoom.pm 2 Jan 2013 11:08:02 -0000 1.36
+++ AgentFAQZoom.pm 25 Apr 2013 02:27:04 -0000 1.37
@@ -153,4 +153,16 @@
}
+ # detect all plain text links and put them into an HTML <a> tag
+ $FieldContent = $Self->{LayoutObject}->{HTMLUtilsObject}->LinkQuote(
+ String => $FieldContent,
+ );
+
+ # set target="_blank" attribute to all HTML <a> tags
+ # the LinkQuote function needs to be called again
+ $FieldContent = $Self->{LayoutObject}->{HTMLUtilsObject}->LinkQuote(
+ String => $FieldContent,
+ TargetAdd => 1,
+ );
+
# add needed HTML headers
$FieldContent = $Self->{LayoutObject}->{HTMLUtilsObject}->DocumentComplete(
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log