×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: link in comment became broken

link in comment became broken 14 years 2 months ago #8750

  • Wong Jiang Fung
  • Wong Jiang Fung's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
After upgrade from older version (3.26) to 4.0 rc

two links in the comments became broken. An extra whitespace %20 is added in the link href attribute.

See:

www.artwinauto.com/downloads/boss-key-pr...e-use-in-office.html
www.artwinauto.com/downloads/typing-programs/blitztype.html

link in comment became broken 14 years 2 months ago #8751

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
I have the same problem... :blush:

It seems to be that when you see (read) the link text, it seems fine. But when you roll over it, and see closely the link that you will be taken to, it has added space characters according to line-breaks in the editor field.

I have the same thing also happening with images. Hence, they don't show...

link in comment became broken 14 years 2 months ago #8758

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
Since it wasn't just me with this problem, I started digging around...

The latest version installs with a default Word length of 50 characters.
Hence, when a link (or photo etc) need to link somewhere, it often goes over this quantity, and the security system adds breaks to the string.

To fix it:
Backend > Component Settings > Security > word max length

you will see it is probably at 50.
If you increase this to ie. 150, that should solve it.
It did here at least. :)

You will also need to do this for each of your plugins, if installed.

link in comment became broken 14 years 2 months ago #8759

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Great... I think the new wordwrap function needs to be taught to ignore UBBCode tags. Nil's solution is the best choice for the moment.

link in comment became broken 14 years 2 months ago #8762

  • Wong Jiang Fung
  • Wong Jiang Fung's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
that's odd... is URL a word?

link in comment became broken 14 years 2 months ago #8763

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
Well, it is a string of characters, and a computer doesn't really "read"...
So it is enterpreting it as a word in this case.

As JonusC says, the next solution, which is the proper way, would be to get the system to not include UBB stuff to this security rule.

link in comment became broken 14 years 2 months ago #8770

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Yeah, I'll try taking a look at it right now - though Daniel included a brand new wordwrap function I get to write a fancy regular expression to solve this ;)

link in comment became broken 14 years 2 months ago #8819

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I thought that I solved this. I've added a function that should skip breaking or adding whitespace on links. I'll look at this.
  • Page:
  • 1
Time to create page: 0.112 seconds