collapse

* Member Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Like Us on Facebook

...traditional musicians, too, often try to "get it down just like" an admired player picks a particular tune. This is not slavish imitation for its own sake but rather a passionate desire to get at the very sinews of the style, based on the realization that the impact of traditional music depends on detail and an evocative context... - Art Rosenbaum, Old-Time Mountain Banjo

Author Topic: Problem With Right/Close Parenthesis (curved bracket) in Link  (Read 299 times)

0 Members and 1 Guest are viewing this topic.

Offline Stuart

  • Member
  • Posts: 2591
  • "The Voice of Almiqui"
Problem With Right/Close Parenthesis (curved bracket) in Link
« on: September 22, 2019, 04:19:27 PM »
I noticed this when I posted the link:

https://en.wikipedia.org/wiki/Spencer_Williams_(actor)

Spencer Williams

It shows up, just not as part of the link. And it doesn't appear to matter where it is in the link.

« Last Edit: September 22, 2019, 09:42:30 PM by Stuart »

Online Slack

  • Administrator
  • Member
  • Posts: 8791
Re: Problem With Right/Close Parenthesis (curved bracket) in Link
« Reply #1 on: September 22, 2019, 04:58:24 PM »
Weird, we'll see what Mr. Tech Support says.

Offline Rivers

  • Tech Support
  • Member
  • Posts: 6928
  • I like chicken pie
Re: Problem With Right/Close Parenthesis (curved bracket) in Link
« Reply #2 on: September 22, 2019, 05:37:11 PM »
SMF bug I think. Will be fixed in the next release. Or not!

Another analysis would be that the SMF PHP code is regarding it as an illegal URL, having that close parentheses character at the very end, and purposely breaking said assumed URL. In other words it could be interpreting it as an attempted SQL injection attack. Just a wild guess. The HTML code being output looks like this:

Code: [Select]
<a href="https://en.wikipedia.org/wiki/Spencer_Williams_(actor" class="bbc_link" target="_blank">https://en.wikipedia.org/wiki/Spencer_Williams_(actor</a>)
Notice the final bracket is outside the html link construct. Or it could just be a bug. I'll take a look at the php link formatting code when I'm feeling geeky.
« Last Edit: September 22, 2019, 05:39:58 PM by Rivers »

Offline Stuart

  • Member
  • Posts: 2591
  • "The Voice of Almiqui"
Re: Problem With Right/Close Parenthesis (curved bracket) in Link
« Reply #3 on: September 22, 2019, 06:03:35 PM »
I copied the link into a new message and experimented by placing the ")" in several different locations in the link and checking the "Preview." It didn't seem to matter where it was as it always showed up as a non-link (black) character instead of the brown link character--on my screen, anyway.

Yeah, my guess is that it's probably some bug or conflict. It doesn't matter much in this instance because it gets us close enough in Wiki. But somewhere down the line it just might require the standard "paste link into address bar" work around, or perhaps using TinyURL.

Thanks for taking a look.
« Last Edit: September 22, 2019, 06:05:12 PM by Stuart »

Offline Rivers

  • Tech Support
  • Member
  • Posts: 6928
  • I like chicken pie
Re: Problem With Right/Close Parenthesis (curved bracket) in Link
« Reply #4 on: September 22, 2019, 06:16:19 PM »
I'm going to try something to see if I can make it work:

Spencer Williams

Yup, that worked, much to my surprise. Here's the SMF markup code for it:

Code: [Select]
[url=https://en.wikipedia.org/wiki/Spencer_Williams_(actor)]Spencer Williams[/url]
Just copy that and paste it into your post as is.

It's clearly a bug in the SMF code that converts raw, inline URLs into HTML valid <a> links.
« Last Edit: September 22, 2019, 06:30:58 PM by Rivers »

Offline Stuart

  • Member
  • Posts: 2591
  • "The Voice of Almiqui"
Re: Problem With Right/Close Parenthesis (curved bracket) in Link
« Reply #5 on: September 22, 2019, 09:43:48 PM »
Thanks, Rivers. Consider it done. I left the original in for reference.


Tags: