** Changed in: mahara
    Milestone: 16.04.1 => 16.10.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1234582

Title:
  Can't display images in RSS feeds with protocol-relative URLs

Status in Mahara:
  Confirmed
Status in Mahara 15.04 series:
  Confirmed
Status in Mahara 15.10 series:
  Confirmed
Status in Mahara 16.04 series:
  Confirmed

Bug description:
  As described by Robert while investigating another bug report:
  https://bugs.launchpad.net/mahara/+bug/1219499/comments/5

  The problem where some images are not showing up is because they tend
  to be protocol relative urls to the images and the Mahara system tries
  to append a url to them but this makes the path incorrect.

  eg for slideshare (http://www.slideshare.net/rss/latest)

  There are image links in the feed like:

  
//cdn.slidesharecdn.com/ss_thumbnails/lptrnhc2008cbnnhtnghththutit360-130902225125-phpapp02-thumbnail-2.jpg

  and mahara sees this as a relative url and appends
  http://www.slideshare.net/ to the front if it which then makes

  
http://www.slideshare.net//cdn.slidesharecdn.com/ss_thumbnails/lptrnhc2008cbnnhtnghththutit360-130902225125-phpapp02-thumbnail-2.jpg

  which is an incorrect url and the image will not be found there

  Need to alter the code in htdocs/blocktype/externalfeed/lib.php from
  /src="(\/[^"]+)"/ to something that doesn't try and update protocol
  relative urls

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1234582/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to