miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Images with a https:// location not linked to

Author Steve Shaw
Registered
#1 | Posted: 30 Jul 2013 17:31 | Edited by: Steve Shaw 
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 | Edited by: Paul 
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
Registered
#3 | Posted: 30 Jul 2013 18:32 | Edited by: Steve Shaw 
[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 | Edited by: Paul 
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
Registered
#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 Top

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

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB