#4136 - Problem in vertical text generation

Identifier #4136
Issue type Trivial issue (does not break functionality)
Title Problem in vertical text generation
Status Completed
Handling member Chris Graham
Version 10.0.30
Addon core
Description Composr looks in the CSS to grab the colour for vertical text images, as used on permission and notification setting screens.

However, if the CSS colour is changed from the default 6 hex-characters, to 3 hex-characters, it won't be handled correctly, creating a logged error. Additionally, bots may potentially pass nonsense.

"Invalid characters passed for attempted conversion, these have been ignored in /sources/misc_scripts.php on line 132"

Allow it to handle 3-character hex strings, and otherwise ignore invalid colour strings.
Steps to reproduce

Funded? No
Commits

Fixed MANTIS-4136 (Problem in vertical text generation) (5904f687) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated