Bug #32368

link validation of imageLinkWrap failed

Added by Stefan Froemken over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2011-12-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hello TYPO3-Team,

when you enable image_zoom a link will be generate in this form:

http://myPage/index.php?eID=tx_cms_showpic&file=uploads%2Fpics%2Ffinnland.jpg&md5=hashValue&parameters0=hashValue&parameters1=hashValue&parameters2=hashValue&parameters3=hashValue

The brakets [ and ] are not valid for w3c.

I found following code in class.tslib_content.php:

$params = '&md5=' . $md5_value;
foreach (str_split($parametersEncoded, 64) as $index => $chunk) {
    $params .= '&parameters[' . $index . ']=' . rawurlencode($chunk);
}

As you can see the brakets are hardcoded.

Hint: The & converts correctly in FE (& amp ;)

TS-Solution: This is a solution as long as this bug is not fixed:

tt_content.image.20.1.stdWrap.split {
  token = [
  cObjNum = 1 || 2
  1.current = 1
  2.current = 1
  2.wrap = %5B|
}
tt_content.image.20.1.stdWrap.stdWrap.split {
  token = ]
  cObjNum = 1 || 2
  1.current = 1
  2.current = 1
  2.wrap = %5D|
}

#1

Updated by Stefan Froemken over 9 years ago

I just see that the link is not correct in my description. Hope this is better:

myPage?eID=tx_cms_showpic&file=uploads%2Fpics%2Ffinnland.jpg&md5=hashValue&parameters [0]=hashValue&parameters [1]=hashValue&parameters [2]=hashValue&parameters [3]=hashValue

Stefan

#2

Updated by Mathias Schreiber over 6 years ago

  • Status changed from New to Closed
  • Is Regression set to No

fixed

Also available in: Atom PDF