Project

General

Profile

Actions

Bug #20868

closed

click-enlarge function for images does not work correctly in IE8

Added by Maik Matthias over 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-08-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The popup-window generated by the click-enlarge function produces an IE-Error stating that a function was blocked. This function is the submitted javascript-code for closing the popup window. This code is then destroyed by the IE, obviously to prevent XSS-Hacks.

Same problem with Typo3 4.1.10.

I think, it´s not a bug in IE8. Typo3 should not pass javascript-code via url parameters.

A workaround is to disable the "window.close"-function for the IE8-Browser via TS:

  1. IE8 Bugfix ClickEnlarge-function ###
    [browser = msie] && [useragent = Trident/4.0]
    plugin.tt_news.displaySingle.image.imageLinkWrap.wrap = |
    tt_content.image.20.1.imageLinkWrap.wrap = |
    [end]

A better solution is to fix the core-file typo3/sysext/cms/tslib/showpic.php
There the window-close function could be implemented in the body-tag of the output html code for the popup:

<body bgcolor="white" onClick="window.close();">
(issue imported from #M11695)


Files

0011695.diff (5.06 KB) 0011695.diff Administrator Admin, 2010-06-25 19:19

Related issues 4 (0 open4 closed)

Has duplicate TYPO3 Core - Bug #21539: openPic close popup internet explorer 8 incompatibilityClosedChris topher2009-11-12

Actions
Is duplicate of TYPO3 Core - Bug #21554: IE8 Cross Site Scripting WarningClosed2009-11-15

Actions
Is duplicate of TYPO3 Core - Bug #22990: imageLinkWrap.JSwindow triggers XSS warning or FailsClosedSusanne Moog2010-06-24

Actions
Has duplicate TYPO3 Core - Bug #21919: XSS Error in IE8 when Picture is enlargedClosed2010-01-06

Actions
Actions

Also available in: Atom PDF