Links that contain @ symbol break all bbc in given post

Started by Koda, January 18, 2017, 12:31:25 PM

Previous topic - Next topic

Koda

Hello, I have been trying to figure out this issue on and off for a little while now, and think I have isolated it down to a single trigger.  Previous post can be seen here with mods installed and more info: http://www.simplemachines.org/community/index.php?topic=541528.0

My website is hxxp://phytoactive.net (replace xx with tt)

Basically everything works great except when I post a link to a website that has an @ code in the url.  say: https://www.flickr.com/photos/146862050@N05/
will be converted automatically into
http://[url]https://www.flickr.com/photos/146862050@N05/[/url]


Additionally, all links in the same post will be changed into the broken format.

I did remove the @members module I had installed but the links still break.  Any ideas?


Kindred

I see a numbe rof answers regarding this... but that one that I would think sounds the most accurate is

Quote


Can you use the @-symbol in a URL? - Yes, you can!

Note that that @-character, hexadecimal value 40, decimal value 64, is a reserved characters for URI's. It's usage is for things like email-addresses in mailto:URI's, for example mailto:[email protected] and for passing username and password information on a URI (which is a bad idea, but possible): http://username:[email protected]

If you want a URL that has an @-symbol in a path you need to encode it, with so called "URL-encoding". For example like this: http://somewhere.foo/profile/username%40somewhere.foo

All modern browsers will display this as http://somewhere.foo/profile/[email protected], and will convert any typed in @-sign to %40, so it's easy to use.

Many web-frameworks will also help you either automatically, or with helper-functions, to convert to and from URL-encoded URL's.

So, in summary: Yes, you can use the @-symbol in a URL, but you have to make sure it's encoded, as you can't use the @-character.

in other words, that URL is not fully valid per the URI specifications
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Koda

Is there any workaround?  A few fairly large sites use @ symbols in their urls, including the following:

medium.com and flickr, but I am sure I have seen the issue with other websites as well.

Do the links work on this forum?  Let's see: https://www.flickr.com/photos/146862050@N05/

Doesn't break here, maybe I am misreading your post a bit.  On my forum the link would be converted to this:

http://[url]https://www.flickr.com/photos/146862050@N05/[/url] where it would take you to a non-working url.

Illori



Koda

Here is the list of mods I have installed:

1. Bad Behavior mod 1.5.18 [ Uninstall ] [ List Files ] [ Delete ]
2. Embed Tumblr BBCode 2.2 [ Install Mod ] [ List Files ] [ Delete ]
3. @mention members 1.1.2 [ Uninstall ] [ List Files ] [ Delete ]
4. PDF Tag 1.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Glossary 0.3.1 [ Uninstall ] [ List Files ] [ Delete ]
6. VBBIS - VBulletin Board Index Style 1.9.3 [ Install Mod ] [ List Files ] [ Delete ]
7. SMF 1.1.20 / 2.0.9 Update 1.0 [ List Files ] [ Delete ]
8. Add [list][li] Button 1.0 [ Uninstall ] [ List Files ] [ Delete ]
9. SimplePortal 2.3.6 [ Uninstall ] [ List Files ] [ Delete ]
10. Prevent Adding Signature Images And Links 2.0 [ Uninstall ] [ List Files ] [ Delete ]
11. SMF 2.0.8 Update 1.0 [ List Files ] [ Delete ]
12. Force Topic Read On Login Mod 2.1 [ Uninstall ] [ List Files ] [ Delete ]
13. AWSP - Add WebSite Permission 1.4.3 [ Uninstall ] [ List Files ] [ Delete ]
14. Premiumbeat Flash MP3 Player 2.0.1 [ Uninstall ] [ List Files ] [ Delete ]
15. Contact Page 3.2 [ Uninstall ] [ List Files ] [ Delete ]
16. Socialize 1.8 [ Uninstall ] [ List Files ] [ Delete ]
17. Wiki Links 1.1 [ Uninstall ] [ List Files ] [ Delete ]
18. Ad Managment 3.2 [ Uninstall ] [ List Files ] [ Delete ]
19. Default Avatar 2.3 [ Uninstall ] [ List Files ] [ Delete ]
20. Tapatalk SMF 2.0 Plugin 4.3.0 [ Uninstall ] [ List Files ] [ Delete ]
21. Ohara YouTube Embed 1.2.4 [ Uninstall ] [ List Files ] [ Delete ]
22. Google Tagged 2.0 [ Uninstall ] [ List Files ] [ Delete ]
23. Add Social Media Icons To Profiles 1.2.0 [ Uninstall ] [ List Files ] [ Delete ]
24. Soundcloud BBcode 1.6 [ Uninstall ] [ List Files ] [ Delete ]
25. SMF 1.1.21 / 2.0.10 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]
26. SA Shop 1.0 RC1 [ Install Mod ] [ List Files ] [ Delete ]
27. Embed Tweet BBCode 1.1.1 [ Install Mod ] [ List Files ] [ Delete ]
28. Signature Area BBCode Buttons 2.0.3 [ Uninstall ] [ List Files ] [ Delete ]
29. Search Focus Dropdown 1.6.1 [ Uninstall ] [ List Files ] [ Delete ]
30. Embed Facebook BBCode 2.13 [ Install Mod ] [ List Files ] [ Delete ]
31. Expanding & Collapsing Spoiler Tag 1.10 [ Uninstall ] [ List Files ] [ Delete ]
32. Optimus Brave 1.8.7 [ Uninstall ] [ List Files ] [ Delete ]
33. FAQ Tags 0.1 [ Install Mod ] [ List Files ] [ Delete ]
34. Wikipedia BBC 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
35. APImage 0.3.1 [ Uninstall ] [ List Files ] [ Delete ]
36. Related Topics 1.401 [ Uninstall ] [ List Files ] [ Delete ]
37. Anti-Spam Links 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
38. Moderator and Administrator Comment Tags 1.8.1 [ List Files ] [ Delete ]
39. Expanding & Collapsing Off-Topic Tag 1.8 [ Uninstall ] [ List Files ] [ Delete ]
40. SMFBlog 2.0 [ Uninstall ] [ List Files ] [ Delete ]
41. Misc Anti Spam 1.0 [ Uninstall ] [ List Files ] [ Delete ]
42. Pretty URLs 1.1.2 [ Uninstall ] [ List Files ] [ Delete ]
43. SA Facebook 3.1 [ Install Mod ] [ List Files ] [ Delete ]
44. RIAST: Remove Index & Add Smart Title 1.3.0 [ Uninstall ] [ List Files ] [ Delete ]
45. Add [nobbc] button 1.1 [ Uninstall ] [ List Files ] [ Delete ]
46. Customize *Child Board* 2.7 [ Uninstall ] [ List Files ] [ Delete ]
47. BBC Permission Mod 1.0 [ Install Mod ] [ List Files ] [ Delete ]
48. SMFShop 3.3.2 [ Install Mod ] [ List Files ] [ Delete ]
49. Social Login 3.4 [ Uninstall ] [ List Files ] [ Delete ]
50. Embed Instagram BBCode 1.9 [ Install Mod ] [ List Files ] [ Delete ]


    Attached is my subs.php file.  Thank you for the assistance.

Kindred

well...  first and foremost, you need to upgrade to 2.0.13

You are four revisions behind, including some bug fixes and security updates
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: