LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LQ Suggestions & Feedback (https://www.linuxquestions.org/questions/lq-suggestions-and-feedback-7/)
-   -   Url tags do not always wrap urls correctly (https://www.linuxquestions.org/questions/lq-suggestions-and-feedback-7/url-tags-do-not-always-wrap-urls-correctly-4175623970/)

orbea 02-18-2018 10:04 AM

Url tags do not always wrap urls correctly
 
I noticed a trivial bug, but I figured its worth mentioning anyways.

Usually when posting an url LQ will automatically wrap it with url tags.

For example.

https://www.linuxquestions.org/

However when I tried to post this url I it wraps incorrectly before the '[]'.

https://docs.slackware.com/studioware:tips_and_hints?s[]=ccache#ccache

Of course, I can always preview the post to make sure it worked correctly and edit the post to manually fix it.

https://docs.slackware.com/studiowar...=ccache#ccache

TenTenths 02-21-2018 06:39 AM

Quote:

Originally Posted by orbea (Post 5821251)
However when I tried to post this url I it wraps incorrectly before the '[]'.

Square brackets are generally considered "unsafe" in URLs and should always be encoded. When vBulletin tried to encapsulate a URL it's assuming that the url is complete at the unsafe right square bracket (which I'm sure you're aware is also the start of bbCode entities).

Try ensuring that any URLs you post are "safe", and if not then manually type the [url][/url] tags and paste the URL in between them rather than manually having to edit the post afterwards.

jeremy 02-21-2018 09:13 AM

Thanks for the feedback. We'll get this addressed in a future update.

--jeremy

orbea 02-21-2018 10:51 AM

Thanks!


All times are GMT -5. The time now is 03:43 PM.