? ? Success

User tests: Successful: Unsuccessful:

avatar bertmert
bertmert
1 Jun 2017

Summary of Changes

Removed all $baserurl from image src.

Testing Instructions

  • Current staging with testing data.
  • Go to Banners manager > Banners.
  • Deactivate all banners but Shop 1.
  • Open banner Shop1 and enter an existing(!) external Image Url in field image via media manager. (something like http://example.org/someimage.jpg)
  • Save.
  • Go to Module Manager.
  • Open banner module Book Store.
  • Set position banner.
  • Save module.
  • Go to frontend. You'll see that image is not displayed.

01-06-_2017_20-55-21

  • Apply patch
  • Reload frontent. You see the image now.
  • Test now with an internal Image URL that nothing has changed and internal image is displayed, too.
avatar bertmert bertmert - open - 1 Jun 2017
avatar bertmert bertmert - change - 1 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jun 2017
Category Modules Front End
avatar bertmert bertmert - change - 1 Jun 2017
The description was changed
avatar bertmert bertmert - edited - 1 Jun 2017
avatar bertmert bertmert - change - 1 Jun 2017
The description was changed
avatar bertmert bertmert - edited - 1 Jun 2017
avatar Quy
Quy - comment - 2 Jun 2017

I have tested this item successfully on 83cc1bf


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

avatar Quy Quy - test_item - 2 Jun 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Jun 2017

I have tested this item successfully on 83cc1bf


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Jun 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 2 Jun 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Jun 2017

RTC after two successful tests.

avatar rdeutz
rdeutz - comment - 10 Jun 2017

I think it is saver to check if image url starts with http and than not add the base url

avatar bertmert
bertmert - comment - 10 Jun 2017

Go into an article, click TinyMCE image button. Enter bload://pumps.jpg as URL. Click insert.
Nothing is checking if its http or whatever.
Try the same with Intro Image...
Check the result in FE.
<img src="bload://pumps.jpg" alt="">

So why should I code now in this PR a check for the protocol? Do we really need restrictions like that for the users? If they don't see the image in FE I think they know that they did something wrong.

avatar rdeutz
rdeutz - comment - 10 Jun 2017

The reason for my suggestion is b/c, whatever we change we should always try to implement it in a way that it is as close as possible to the past behaviour.

avatar bertmert
bertmert - comment - 10 Jun 2017

My change is fully B\C. Nothing changes for internal URLs. As I said it's the same bahavior like anywhere in Joomla. The consequence of what you say is that Joomla is unsafe at several places. The media manager is unsafe? So, the issue should be fixed there.

The typical way for banner placement is. You get an affiliate link and an external image link. It must be possible to paste both in the banner item without any further efforts like downloading images.

Close here if you think that I really opened a security issue.

avatar rdeutz
rdeutz - comment - 10 Jun 2017

it is my job to better save than sorry, btw. I haven't said something about security

avatar bertmert bertmert - change - 15 Jun 2017
Labels Added: ?
avatar rdeutz rdeutz - change - 20 Jun 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-20 09:09:17
Closed_By rdeutz
avatar rdeutz rdeutz - close - 20 Jun 2017
avatar rdeutz rdeutz - merge - 20 Jun 2017

Add a Comment

Login with GitHub to post a comment