2.0.18 <> bug with greater/less than symbols appearing in board index

Started by spiros, February 03, 2021, 03:54:56 AM

Previous topic - Next topic

spiros

If you check the last post on board index, if it contains a < or > symbol, it will be displayed as lt and gt there, but it will be rendered ok on the actual topic page.

Example Urls
https://www.translatum.gr/forum/index.php
https://www.translatum.gr/forum/index.php?topic=990762.0

And see the last image, same thing happening on this board.

Antechinus

This should probably be in Bug Reports. I can see the problem live on the board index right now.

spiros

Yes, sorry, somebody please move.
By the way, did you make the dark theme for SMF.org a standard theme?

Dzonny

Topic moved, thanks for reporting, seems like there's a bug indeed.

Antechinus

Quote from: spiros on February 03, 2021, 04:24:45 AM
Yes, sorry, somebody please move.
By the way, did you make the dark theme for SMF.org a standard theme?
Not yet. I've just been using it here, and on a couple of other sites, running straight from my browser. :D

spiros

Great, I have been using it ever since and I cannot use this site in any other way now!

Antechinus

Same here. I even made a slightly different version for Elkarte so I could use that too. I love the thing.

Anyway, we probably should stop hijacking the bug report. ;)

GigaWatt

Actually, I'm not seeing this on my forum and on this one as well.

"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?"..."

Antechinus

Ok, I'll bump this topic now. Check the board index before the last post is replaced by another topic. The bug was visible earlier when this topic had the last post on the board index,

IOW, your screenshot is not relevant, because it's not of the relevant content.


Dzonny


GigaWatt

Quote from: Antechinus on February 03, 2021, 07:32:21 AM
IOW, your screenshot is not relevant, because it's not of the relevant content.

But... it's from the board's last post, the last attachment in spiros's first post is from that ???.

Quote from: Antechinus on February 03, 2021, 07:34:48 AM
And right on cue...

Yeah, but it shows up only if the topis starts with "2.0.18" in the title.



And it doesn't show up on my forum if "2.0.18" is present in the title as a string.

"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?"..."

Dzonny

I think you misunderstood what the bug here is :)

Take a closer look at this topic and its actual title here in post and then on board index. You'll notice the "lt" on board index, like this: <lt> :)

spiros

GigaWatt, try reading again the original post. This issue only occurs if these characters are used in title: <>
Perhaps it could also appear with similar characters like the ampersand (&).

Dzonny

Exactly. I can confirm that it happens of 2 of my forums as well, both updated to 2.0.18 using patch file.

GigaWatt

OK, I think I can reproduce it ;). It's kinda hard to reporoduce, LOL :D.

It only happens if either <, > or both < and > are present in the title, BUT only if 2, 0 and 18 is also present in the title. Doesn't matter if it's 2.0.18, 2.0. 18, 2 0 18, as long as they are separated with at least one character (any will do, tried it with letters too, as long as they're not other digits).

AND, the title has to contain at least 6 separate strings separated with white spaces, including the 2 0 18 "string" (I'll consider it as whole string, even though the bug appears even if 2, 0 and 18 are separated with white spaces) and either or both < and > are present, either next to each other (which is considered as a whole string) or separated with a white space. If they're. If there are 5 or less, the bug doesn't appear.
"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?"..."

spiros

Quote from: GigaWatt on February 03, 2021, 08:40:11 AM
It only happens if either <, > or both < and > are present in the title, BUT only if 2, 0 and 18 is also present in the title. Doesn't matter if it's 2.0.18, 2.0. 18, 2 0 18, as long as they are separated with at least one character (any will do, tried it with letters too, as long as they're not other digits).

How did you come to that conclusion about numbers, etc? Have a look here (use find in page for >gt )
https://www.translatum.gr/forum/index.php

Or check the images I posted in opening post.

GigaWatt

Yeah, you're right, my mistake :P :D. Though that somehow 2.0.18 as a string was related to this, but after some more testing, yes, it's not related ;).

The bug appears only if the title contains more or equal to 25 characters, including < or >. White spaces, strings and other stuff, as I initially though, has nothing to do with the bug.

To reproduce the bug, make a title with 24 characters, include < or > (or both) in any order in the title and the bug appears ;).
"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?"..."

Dzonny


shawnb61

A question worth asking is born in experience & driven by necessity. - Fripp

Advertisement: