Actions
Bug #14228
closedLeading Slash missed in image url
Status:
Closed
Priority:
Should have
Assignee:
Category:
Content Rendering
Target version:
-
Start date:
2004-07-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
hope that is the right extension.
I use the aliasPro extension; so absolute pathes were needed.
Typo3 is quite right configured - but in the cms-extension there is one image without the leading slash:
- /var/lib/typo3/typo3_src-3.6.1/typo3/sysext/cms/tslib/class.tslib_content.php 2004-07-06 09:03:12.000000000 +0200
--- /var/lib/typo3/typo3_src-3.6.1/typo3/sysext/cms/tslib/class.tslib_content.php.orig 2004-05-11 15:14:26.000000000 +0200- class tslib_cObj {
- 6546,6552 **
$GLOBALS['TSFE']->set_no_cache(); // Special content is about to be shown, so the cache must be disabled.
$style = $conf['styleAttribute'] ? ' style="'.htmlspecialchars($conf['styleAttribute']).'"' : '';
$iconTitle = $this->stdWrap($conf['iconTitle'],$conf['iconTitle.']);
! $iconImg = $conf['iconImg'] ? $conf['iconImg'] : '<img src="/t3lib/gfx/edit_fe.gif" width="11" height="12" border="0" align="top" title="'.t3lib_div::deHSCentities(htmlspecialchars($iconTitle)).'"'.$style.' class="frontEndEditIcons" alt="" title="" />';
$nV=t3lib_div::_GP('ADMCMD_view')?1:0;
$icon = $this->editPanelLinkWrap_doWrap($iconImg,TYPO3_mainDir.'alt_doc.php?edit['.$rParts0.']['.$rParts1.']=edit&columnsOnly='.rawurlencode($fieldList).'&noView='.$nV.$addUrlParamStr,implode(':',$rParts));
if ($conf['beforeLastTag']<0) {
--- 6546,6552 ----
$GLOBALS['TSFE']->set_no_cache(); // Special content is about to be shown, so the cache must be disabled.
$style = $conf['styleAttribute'] ? ' style="'.htmlspecialchars($conf['styleAttribute']).'"' : '';
$iconTitle = $this->stdWrap($conf['iconTitle'],$conf['iconTitle.']);
! $iconImg = $conf['iconImg'] ? $conf['iconImg'] : '<img src="t3lib/gfx/edit_fe.gif" width="11" height="12" border="0" align="top" title="'.t3lib_div::deHSCentities(htmlspecialchars($iconTitle)).'"'.$style.' class="frontEndEditIcons" alt="" title="" />';
$nV=t3lib_div::_GP('ADMCMD_view')?1:0;
$icon = $this->editPanelLinkWrap_doWrap($iconImg,TYPO3_mainDir.'alt_doc.php?edit['.$rParts0.']['.$rParts1.']=edit&columnsOnly='.rawurlencode($fieldList).'&noView='.$nV.$addUrlParamStr,implode(':',$rParts));
if ($conf['beforeLastTag']<0) {
(issue imported from #M201)
Updated by Karsten Dambekalns almost 20 years ago
If there was a leading slash in the file, TYPO3 would generate incorrect paths if it is located in a subdirectory on the server.
Updated by Karsten Dambekalns almost 20 years ago
In addition to my above comment: It would be better to set a base tag (like the realurl extension does) to solve this. I'd consider this a flaw in the aliaspro extension.
Actions