Jump to content

Some posted image URLs not displaying since upgrading


watchhead

Recommended Posts

Here's an odd one but hopefully an easy fix?

Since updating to 4.1.14.2 recently, Images that users post where the URL contains a space aren't displaying.  All others are working fine.  For example, this URL doesn't display the image on my forum but works OK here (there is a space between 'mobile' and 'uploads' within the URL but appears correctly encoded):

http://i1014.photobucket.com/albums/af261/g4gzg/Mobile%20Uploads/2016-09/IMAG0941_1_zpshhnutipz.jpg

IMAG0941_1_zpshhnutipz.jpg

The problem seems to occur every time the URL contains a space (%20).  The HTML looks OK within the editor and the URL seems to be encoded correctly:

<a href="http://i1014.photobucket.com/albums/af261/g4gzg/Mobile%20Uploads/2016-09/IMAG0941_1_zpshhnutipz.jpg" rel="external nofollow">http://i1014.photobucket.com/albums/af261/g4gzg/Mobile Uploads/2016-09/IMAG0941_1_zpshhnutipz.jpg</a>

Any ideas where I should start looking?  It's a real pain for us at the moment so any advice would be gratefully received!

 

 

Link to comment
Share on other sites

I've noticed that for image URLs that don't work, the ipsnoembed="true" element is being added to the href HTML.  Images that do work aren't having this element added.

e.g this is the HTML in the editor when an image URL contains a space (%20).  This doesn't display on my forum:

<a href="http://i1110.photobucket.com/albums/h445/krispydk/test%20album/IMG_20160826_193954_zpsx4vr4rtb.jpg" ipsnoembed="true" rel="external nofollow">http://i1110.photobucket.com/albums/h445/krispydk/test album/IMG_20160826_193954_zpsx4vr4rtb.jpg</a>

This is the HTML for an image URL that does work.  

<img alt="DSC01297_zpsyodtlwz7.png" class="ipsImage" height="600px" src="http://i1110.photobucket.com/albums/h445/krispydk/Travel/DSC01297_zpsyodtlwz7.png" width="1000px">

So URLs including spaces which don't display are being added as an href with the ipsnoembed element included; URLs without a space are being added as img and do display.

Any ideas why these are being handled differently.  Also, can anyone tell me what ipsnoembed does (I can guess!) and how it's controlled?

This only began happening after the latest upgrade.

If you add the URL of the image that doesn't work to the HTML of the image that does work - the image loads on my forum.

e.g.

<img alt="DSC01297_zpsyodtlwz7.png" class="ipsImage" height="600px" src="http://i1110.photobucket.com/albums/h445/krispydk/test%20album/IMG_20160826_193954_zpsx4vr4rtb.jpg" width="1000px">

So, what is making the first image URL being added as a href rather than an img??

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...