CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #37365

ImageMap cannot be edited anymore since TYPO3 4.7

Added by Stefan Galinski about 1 year ago. Updated 2 months ago.

Status:New Start date:2012-05-21
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Votes: 5 (View)

Description

Reason: Incompatible regexp that doesn't supported HTML syntax (missing ending slash on an image tag). See attached patch...

imagemapwizard_37365.diff (1.1 kB) Stefan Galinski, 2012-05-21 15:12

class.tx_imagemapwizard_model_dataObject.php.patch (176 Bytes) Gabriel Kaufmann / Typoworx NewMedia, 2013-03-13 16:49

History

Updated by Jonas Götze 7 months ago

same issue - above patch worked for me.

Updated by Gabriel Kaufmann / Typoworx NewMedia 2 months ago

Nice work. I was just about to post a similar patch for TYPO3 4.7.7!

Just a suggestion to improve the RegExp... removing the "\/" before the closing-tag will not hurt as the leading "[^>]*" will match the closing-tag anyway (no matter which chars will come before).

Use this instead for the patch (see file attached):

if (!preg_match('/(<img[^>]+usemap="#[^"]+"[^>]*>)/', $result, $matches)) {
// ...

Also available in: Atom PDF