Could you please get me this as a URL, or atleast dont convert to a url?

Started by hitsme, January 13, 2019, 11:06:59 PM

Previous topic - Next topic

hitsme


Aleksi "Lex" Kilpinen

That's interesting. The http/https part shouldn't really make a difference.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Arantor

It does, though, by not auto converting it to a link.

The issue is that the link contains [ and ] which is also part of bbcode and SMF has never properly supported this.

Aleksi "Lex" Kilpinen

Oh, right - yeah, I was thinking of the linking. http or https should make no difference there, but leaving it as text of course is another thing.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Kindred

Well, the [ and ] should not be used in URLs anyways...


although
https://tools.ietf.org/html/rfc3986#section-2
does technically allow them, they are a part of the list of unsafe characters which should be encoded if required in the URL

Unsafe characters   Includes the blank/empty space and " < > # % { } | \ ^ ~ [ ] `



Сл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."

GigaWatt

Yep, just tried, the URL tag also breaks the link :-\.

Just use the code tag, that's what I would do ;). Or use the nobbc tag either one of those should do the trick ;).

Hmmm... a question just popped up. Why would the BBC parser search for any BBC inside the [url=http://somesite.tld/] part of the tag? Does the URL tag allow other BBCs to be present in that part of the tag?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Arantor

It isn't. The ] in the link is treated naively as the end of the opening tag.

hitsme

Quote from: Arantor on January 15, 2019, 02:22:22 AM
It isn't. The ] in the link is treated naively as the end of the opening tag.
https://archive.org/details/software?and[%5D=creator%3A%22microsoft%22

If thats the case Replacing ] With %5D Does the trick

But I dont expect SMF to do it

Kindred

yes... that would do the trick...   and that is how URLs SHOULD be listed, even from the site itself...   those characters are unsafe to use in URLS, and, if used, should be changed to the encoded version.
Сл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: