?
avatar AlexRed
AlexRed
19 May 2017

Steps to reproduce the issue

Create a new Custom Field List of Images for the Content. Create a new article and select an image for the field.
See the article in frontend and see the image path:
src="/Joomla_3.7.1/images**///**image-name.gif"

Expected result

only a / in the the image img src path

Actual result

3 /// in the image img src path

System information (as much as possible)

Joomla 3.7.1

Additional comments

avatar AlexRed AlexRed - open - 19 May 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 May 2017
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 19 May 2017
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 19 May 2017
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 19 May 2017
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 19 May 2017
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 19 May 2017
avatar AlexRed AlexRed - change - 19 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 19 May 2017
avatar infograf768
infograf768 - comment - 19 May 2017

Confirmed

avatar infograf768
infograf768 - comment - 19 May 2017

this can be solved by correcting
/plugins/fields/imagelist/tmpl/imagelist.php

Change

	$buffer .= '<img src="images/' . $fieldParams->get('directory', '/')
				. '/' . htmlentities($path) . '"' . $class . '/>';

to

	if ($fieldParams->get('directory', '/') !== '/')
	{
		$buffer .= '<img src="images/' . $fieldParams->get('directory', '/')
					. '/' . htmlentities($path) . '"' . $class . '/>';
	}
	else
	{
		$buffer .= '<img src="images/' . htmlentities($path) . '"' . $class . '/>';
	}
avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 19 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 May 2017
Status New Confirmed
avatar infograf768
infograf768 - comment - 19 May 2017

@Bakual
Would that fit?

avatar infograf768
infograf768 - comment - 19 May 2017
avatar AlexRed
AlexRed - comment - 19 May 2017

Ok for me the code by JM
Thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16121.

avatar PhilETaylor
PhilETaylor - comment - 19 May 2017

Please test #16135

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 May 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-05-19 18:26:36
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2017
The description was changed
Status Closed Confirmed
avatar joomla-cms-bot joomla-cms-bot - edited - 19 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2017
Status Confirmed Closed
Closed_Date 2017-05-19 18:26:36 2017-05-19 18:26:37
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 19 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 May 2017

closed as having PR #16135


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16121.

avatar joomla-cms-bot
joomla-cms-bot - comment - 19 May 2017

Add a Comment

Login with GitHub to post a comment