URL bbcode error

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

URL bbcode error

Post by bardosoft »

Hi

i can't link to this file with bbcode :
.mp4]download


any solution ?
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
ToonArmy
Former Team Member
Posts: 4608
Joined: Sat Mar 06, 2004 5:29 pm
Location: Worcestershire, UK
Name: Chris Smith
Contact:

Re: URL bbcode error

Post by ToonArmy »

You need to encode the square brackets. Replace '[' with '%5B' and ']' with '%5D'.

For example, the URL:

Code: Select all

http://www.example.com/brackets[test]
Would be written as:

Code: Select all

http://www.example.com/brackets%5Btest%5D
Resulting in:
Chris SmithGitHub
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

Re: URL bbcode error

Post by bardosoft »

thx

but it should be encoded automatically.
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
dowelld
Registered User
Posts: 354
Joined: Fri Jul 13, 2007 8:37 pm

Re: URL bbcode error

Post by dowelld »

You could always use a site like this one http://www.blooberry.com/indexdot/html/ ... coding.htm

At the bottom of that page you'll see a URL encoder, put your URL into it and it produces this download
pixel001
Registered User
Posts: 100
Joined: Thu Aug 23, 2007 11:38 am

Re: URL bbcode error

Post by pixel001 »

Wikipedia is notorious for this : they have urls ending in exclamation points and brackets, which dont resolve correctly if you omit the URL tags.

without URL tag
http://en.wikipedia.org/wiki/Keating!
with URL tag
http://en.wikipedia.org/wiki/Keating!


without URL tag
http://en.wikipedia.org/wiki/Social_eng ... l_science)
with URL tag
http://en.wikipedia.org/wiki/Social_eng ... l_science)
pixel001
Registered User
Posts: 100
Joined: Thu Aug 23, 2007 11:38 am

Re: URL bbcode error

Post by pixel001 »

hi,

this ticket http://www.phpbb.com/bugs/phpbb3/ticket ... t_id=15110 states that this issue is solved in Svn. but it doesn't seem fixed yet for brackets. is it going to be addressed ?
ToonArmy
Former Team Member
Posts: 4608
Joined: Sat Mar 06, 2004 5:29 pm
Location: Worcestershire, UK
Name: Chris Smith
Contact:

Re: URL bbcode error

Post by ToonArmy »

pixel001 wrote:this ticket http://www.phpbb.com/bugs/phpbb3/ticket ... t_id=15110 states that this issue is solved in Svn. but it doesn't seem fixed yet for brackets. is it going to be addressed ?
No, you should encode parenthesis or use the [url] tag.
Chris SmithGitHub
Locked

Return to “[3.0.x] Support Forum”