Another font size bug (no minimum size)

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Suggested Hosts
Post Reply
User avatar
Gumboots
Registered User
Posts: 692
Joined: Fri Oct 11, 2019 1:59 am

Another font size bug (no minimum size)

Post by Gumboots »

As an example, if someone wanted to post a paragraph of abusive text without it being noticed by moderators or most members, it can easily be done by using a font size of 1%. It will still be indexed by bots as normal post content, but will not be visible to humans unless they view the post in the editor.

Code: Select all

[size=1]As an example, if someone wanted to post a paragraph of abusive text without it being noticed by moderators or most members, it can easily be done by using a font size of 1%. It will still be indexed by bots as normal post content, but will not be visible to humans unless they view the post in the editor.[/size]
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: Another font size bug (no minimum size)

Post by Mick »

blahdy blah blah << Your right.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
warmweer
Jr. Extension Validator
Posts: 11268
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Another font size bug (no minimum size)

Post by warmweer »

As an example, if someone wanted to post a paragraph of abusive text without it being noticed by moderators or most members, it can easily be done by using a font size of 1%. It will still be indexed by bots as normal post content, but will not be visible to humans unless they view the post in the editor.

Nice find: size below 5 doesn't show up.

example: As an example, if someone wanted to post a paragraph of abusive text without it being noticed by moderators or most members, it can easily be done by using a font size of 1%. It will still be indexed by bots as normal post content, but will not be visible to humans unless they view the post in the editor.

Try quoting to verify that I effectively used [size=4] after example: (as I did with Mick's post)

[size=5] is visible (see below)

As an example, if someone wanted to post a paragraph of abusive text without it being noticed by moderators or most members, it can easily be done by using a font size of 1%. It will still be indexed by bots as normal post content, but will not be visible to humans unless they view the post in the editor.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53411
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Another font size bug (no minimum size)

Post by Brf »

Hmm. In Chrome, I see your size-4 as a little squiggle, same as size-5. If I magnify, I can make out words, although I cannot read them.
Attachments
size4.png
size4m.png
User avatar
warmweer
Jr. Extension Validator
Posts: 11268
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Another font size bug (no minimum size)

Post by warmweer »

hmm, strange.
The printscreen below shows what I see using FF (the rendered page).
The arrow shows that there's nothing there (but I can see it in edit_ or quote_mode).
invisible.jpg
And yes, in Chrome, and also Opera, Edge and Brave I can also see that something is there in normal view.

OK, it actually seems to depend on the zoom settings. Increasing that in FF suddenly makes it visible.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: Another font size bug (no minimum size)

Post by Mick »

Somebody should volunteer to make a bug report ➡️ (I volunteer Gumboots)
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Gumboots
Registered User
Posts: 692
Joined: Fri Oct 11, 2019 1:59 am

Re: Another font size bug (no minimum size)

Post by Gumboots »

My 2c: minimum font-size should be about 70%. At that size it is just usefully legible for me (average/not super good eyesight). Below that it starts getting impossible to read without zooming or using the editor.

As a temporary (grossly verbose, but effective) kludge I have been running this:

Code: Select all

/* ---------------------------- */
/*	BBC font size restrictions.	*/
/* ---------------------------- */
/*	Applicable sections:
		section-posting
		section-search
		section-ucp
		section-viewtopic
/* ---------------------------- */
/*	Set maximum size to 160%.	*/
span[style*="font-size:16"],
span[style*="font-size:17"], span[style*="font-size:18"],
span[style*="font-size:19"], span[style*="font-size:200"] {
	font-size: 160% !important;
}
/*	Set minimum size to 70%.	*/
span[style*="font-size:1%"], span[style*="font-size:2%"],
span[style*="font-size:3%"], span[style*="font-size:4%"],
span[style*="font-size:5%"], span[style*="font-size:6%"],
span[style*="font-size:7%"], span[style*="font-size:8%"],
span[style*="font-size:9%"], span[style*="font-size:10%"],
span[style*="font-size:11%"], span[style*="font-size:12%"],
span[style*="font-size:13%"], span[style*="font-size:14%"],
span[style*="font-size:15%"]:not([style*="font-size:150%"]),
span[style*="font-size:16%"], span[style*="font-size:17%"],
span[style*="font-size:18%"], span[style*="font-size:19%"],
span[style*="font-size:2"]:not([style*="font-size:200%"]),
span[style*="font-size:3"], span[style*="font-size:4"],
span[style*="font-size:5"], span[style*="font-size:6"] {
	font-size: 70% !important;
}
The maximum size restriction is just because, personally, I don't like people using 200% in posts. Emphasis is fine. Yelling is stupid. ;)
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
User avatar
Gumboots
Registered User
Posts: 692
Joined: Fri Oct 11, 2019 1:59 am

Re: Another font size bug (no minimum size)

Post by Gumboots »

Mick wrote: Mon Mar 20, 2023 4:00 pm ➡️ (I volunteer Gumboots)
➡️Ok, Gumboots did it.
See: https://tracker.phpbb.com/browse/PHPBB3-17119
Happy now?
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: Another font size bug (no minimum size)

Post by Mick »

Thank you :D
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
[Dimetrodon]
Registered User
Posts: 438
Joined: Tue Aug 30, 2022 3:29 am
Location: Paleozoic Era
Contact:

Re: Another font size bug (no minimum size)

Post by [Dimetrodon] »

Agreed, though I think the overly large size is a bigger problem, though the small size can also be a problem. Also, how many people will actually read this post. NOO! It looks blank!
Mikolaj Kowalczyk
Registered User
Posts: 19
Joined: Thu Oct 20, 2022 4:22 pm
Name: Mikolaj Kowalczyk

Re: Another font size bug (no minimum size)

Post by Mikolaj Kowalczyk »

You could also change font color to post background color


YOU CAN NOT SEE THIS TEXT SEE


If a somebody want to umm mess a round with your forum they will always be a way to do it.
User avatar
Gumboots
Registered User
Posts: 692
Joined: Fri Oct 11, 2019 1:59 am

Re: Another font size bug (no minimum size)

Post by Gumboots »

Sure, although that shows up on selection whereas tiny text doesn't.

You can also use four digit hex to make transparent text, to automatically hide it on any style.

Code: Select all

[color=#0000]You can also use four digit hex to make transparent text, to automatically hide it on any style.[/color]
And yes, there are always ways to mess with people's heads, but if we're going to have a maximum font size IMO it makes sense to set a reasonable minimum too. Anyway it's up to the devs. I already have a CSS kludge that does what I want it to do (ie: sets minimum to 70% and is backwards compatible with existing posts).
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
Post Reply

Return to “phpBB Discussion”