miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

Images with a https:// location not linked to

 
Author Steve Shaw
Partaker
#1 | Posted: 30 Jul 2013 17:31 
When using bb code to link to image help at http:// locations (and possible without a www. address) the image link doesn't work, you see the raw BB code.

Is this correct, or can such links be made to work?

Author Paul
Lead Developer 
#2 | Posted: 30 Jul 2013 18:14 
SO - https or http finally? https should work.

It's by now forbidden to use apostrophes/quotes in images description. Most common reason of why image can't be inserted.
The image's URL itself can not contain specific symbols.

If you would provide the code you're trying to insert, I could clarify more.

Author Steve Shaw
Partaker
#3 | Posted: 30 Jul 2013 18:32 
[imgs=https://photos-5.dropbox.com/t/0/AADLffu8f_8esY1Unf0ceZ9z63t_UMcgWOSQuyJlBhV9dQ /12/2169011/jpeg/32x32/3/_/1/2/2013_BOG-1.jpg/E2PmMCM-xp9g9waizQJhenpAodtS5fegMM08dvG 8WPs?size=1280x960]Here[/imgs]

But, I see characters that are probably not allowed, and it doesn't end in .jpeg, so I guess that's bad too...

:o(

Author Paul
Lead Developer 
#4 | Posted: 31 Jul 2013 11:12 
This is too suspicious, not formatted URL for just an image... of course, it won't pass.

The most suspicious part is that the URL doesn't end with an image extension.
It doesn't end with .jpeg, it ends with regular .jpg; but even if it would end with .jpeg, it's allowed.

What you see in this abnormally long part in the URL, is kind of virtual or even physical folders structure. If you analyze it carefully, you will see it has a lot of internal folders separated by slash; and this path, finally, leads to 2013_BOG-1.jpg ('jpeg' appears to be folder's name); BUT after this filename, there is another string of params added, consisting of some encoded string and the 'size' var.

Obviously, any image you refer in miniBB, should end with an extension and should not have any kind of params or vars followed after. This is a security rule. I guess, if you just provide the URL ending with extension (removing the params part), it should work.

I.e. it should be this URL:

https://photos-5.dropbox.com/t/0/AADLffu8f_8esY1Unf0ceZ9z63t_UMcgWOSQuyJlBhV9dQ/12/2169011/jpeg/32x32/3/_/1/2/2013_BOG-1 .jpg

Or, if it will not, then it's not possible to insert such an image in miniBB.

Author Steve Shaw
Partaker
#5 | Posted: 31 Jul 2013 11:28 
Hi Paul - it's a DropBox held image, and that's the format they use... I guess you just can't use DropBox to hold images you want to link to.

Steve

Author Paul
Lead Developer 
#6 | Posted: 31 Jul 2013 13:03 
If you want to give users possibilities to provide suspicious image URLs, you have all ways to do that, it's open source program :-)
Just edit bb_codes.php and remove this portion of regular expression:

\.(gif|jpg|jpeg|png)
from all the codes of enCodeBB() function following in the "external images" section.

We will not allow such URLs in the default release.

P.S. DropBox guys might be more smart to provide valid URLs for their content... but it's not our problem to fix their defects, don't you agree?..

Specific miniBB Support Forums / Specific /
 Images with a https:// location not linked to
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑