Author Topic: Forum bug caused by rule that rewrites www.... strings into links  (Read 1429 times)

0 Members and 3 Guests are viewing this topic.

Offline I wanted a rude usernameTopic starter

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: au
  • ... but this username is also acceptable.
Try posting a link to https [colon] //2019 [dot] www [dot] torproject.org/docs/pluggable-transports.html.en#user (obviously replace the [dot]s etc.).

The forum absolutely wrecks it. But not when you click Preview, only when you click Post.

There is probably a search-and-replace rule for converting www.... to links that is causing it.
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7549
  • Country: 00
  • +++ ATH1
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #1 on: October 30, 2019, 07:24:30 am »
Yep, its broken, even using the code directive.

Code: [Select]
[url=https://2019.[url=http://www.torproject.org/docs/pluggable-transports.html.en#user]www.torproject.org/docs/pluggable-transports.html.en#user[/url]]...TEST....[/url]
The result :

www.torproject.org/docs/pluggable-transports.html.en#user]...TEST....[/url]
« Last Edit: October 30, 2019, 07:29:39 am by BravoV »
 

Offline I wanted a rude usernameTopic starter

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: au
  • ... but this username is also acceptable.
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #2 on: October 30, 2019, 09:16:08 am »
Yep, its broken, even using the code directive.

Ha, I also tried that. But the replacement doesn't care.

This kind of feature is generally used to enforce rules, e.g. replace all instances of "ass" with "butt". That produces some clbuttic failure modes.  ;D
 
The following users thanked this post: tooki

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5126
  • Country: ro
  • .
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #3 on: October 30, 2019, 09:26:34 am »
As a temporary fix, it seems  you could just escape the dot between 2019 and www by writing it as %2E  (hexadecimal code for dot)

See https://www.eevblog.com/forum/supporters-lounge/test-215812/msg2761262/#msg2761262

Ex https://2019%2Ewww.torproject.org/docs/pluggable-transports.html.en#user

You can modify the post after you submit it and edit the visible link if you want to.
 
The following users thanked this post: I wanted a rude username

Offline soldar

  • Super Contributor
  • ***
  • Posts: 3534
  • Country: es
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #4 on: October 30, 2019, 09:56:05 am »
Testing. Never mind. Cannot find a work-around.
« Last Edit: October 30, 2019, 10:10:55 am by soldar »
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline GlennSprigg

  • Super Contributor
  • ***
  • Posts: 1259
  • Country: au
  • Medically retired Tech. Old School / re-learning !
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #5 on: October 30, 2019, 11:37:31 am »
JUST TESTING !!!

Removing the    "http://2019." and just starting with the "www."

www.torproject.org/docs/pluggable-transports.html.en#user

Yep... that worked !!
In fact you can even leave out the "www." part, for most sites these days !!
« Last Edit: October 30, 2019, 11:40:17 am by GlennSprigg »
Diagonal of 1x1 square = Root-2. Ok.
Diagonal of 1x1x1 cube = Root-3 !!!  Beautiful !!
 

Offline soldar

  • Super Contributor
  • ***
  • Posts: 3534
  • Country: es
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #6 on: October 30, 2019, 02:36:35 pm »
JUST TESTING !!!

Removing the    "http://2019." and just starting with the "www."

www.torproject.org/docs/pluggable-transports.html.en#user

Yep... that worked !!
In fact you can even leave out the "www." part, for most sites these days !!

It works only by coincidence because the server redirects that way but it is not the same url and would not work by default.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline I wanted a rude usernameTopic starter

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: au
  • ... but this username is also acceptable.
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #7 on: October 30, 2019, 10:11:59 pm »
It works only by coincidence because the server redirects that way but it is not the same url and would not work by default.

Yep. Also, this rewrite strips the protocol and replaces it with http, which is unsafe.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12297
  • Country: ch
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #8 on: October 31, 2019, 10:08:45 pm »
The forum absolutely wrecks it.
::sigh:: this forum software leaves a lot to be desired on many fronts. The QA just isn't there. :(

But not when you click Preview, only when you click Post.
I have found several bugs that only appear in the actual post, but not the preview, which is both absolutely maddening and also inexplicable. Why on earth would they develop two different code paths? That gives them twice as many places for bugs to crop up, and results in outcomes like this bug, where the rendering is not identical.  :palm:
 

Offline I wanted a rude usernameTopic starter

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: au
  • ... but this username is also acceptable.
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #9 on: October 31, 2019, 11:01:01 pm »
::sigh:: this forum software leaves a lot to be desired on many fronts. The QA just isn't there. :(

Last stable release (this one, 2.0.15) two years ago, next version in pre-release since 2014. :o

It could be converted to phpBB, but stuff would inevitably break.

Probably just have to put up with SMF and its quirks ... as long as it is receiving security updates.
 
The following users thanked this post: tooki

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12297
  • Country: ch
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #10 on: October 31, 2019, 11:49:27 pm »
Honestly, I hate phpBB with a passion. It suffers from the same affliction so many open source platforms are hobbled by: reliance on plugins for anything beyond barebones functionality. But those plugins are often of awful quality, and then cease to be maintained and break with updates to the platform.

I used to be an admin (as in, super-moderator, not a server admin) on a major Mac forum (60K+ registered users in its heyday), and after its start with UBB (a Perl-based forum that worked well with a few hundred users but didn't scale AT ALL), it moved to vBulletin, an excellent commercial product. It, too, supports plugins, but since it's actually got support and active development, things actually work. Being a Mac forum, there were quite a few web designers among the members, so some were paid to actually code a custom theme and a few custom customizations, which actually work well.

Alas, people seem to invariably reach for open source forum software nowadays, despite the fact that they require immense amounts of babying to keep working well. A false economy IMHO.
 

Offline I wanted a rude usernameTopic starter

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: au
  • ... but this username is also acceptable.
Re: Forum bug caused by rule that rewrites www.... strings into links
« Reply #11 on: January 08, 2020, 10:47:46 am »
Last stable release (this one, 2.0.15) two years ago, next version in pre-release since 2014. :o

Well, speak of the devil. Simple Machines have just started committing changes again.

SMF 2.0.15                                                    November 19, 2017
SMF 2.0.16                                                    December 24, 2019
SMF 2.0.17                                                    December 29, 2019


A sizeable backlog of changes went into 2.0.16. The security fixes don't seem critical.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf