Project

General

Profile

Actions

Bug #26739

closed

TMENU_LAYERS produces identical layer IDs

Added by Markus Rathmayr over 13 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2011-05-10
Due date:
% Done:

0%

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

Description

When creating a nested TMENU_LAYERS menu the function extProc_init in tmenu_layers.php produces identical IDs for sub-layers. I guess this is the case if the configuration of e.g. level 2 and 3 are identical.

This fixes the problem:

instead of:

$this->WMid = trim($this->mconf['layer_menu_id']) ? trim($this->mconf['layer_menu_id']) . 'x' : substr(md5('gl' . serialize($this->mconf)), 0, 6);

use:

$random = rand(1,100);
$this->WMid = trim($this->mconf['layer_menu_id']) ? trim($this->mconf['layer_menu_id']) . 'x' : substr(md5('gl' . $zufall.random($this->mconf)), 0, 6);


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #28640: TMENU_LAYERS does not always create unique IDs for the third levelRejected2011-08-01

Actions
Actions

Also available in: Atom PDF