SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Formatting on ban list needs some tlc

Open sbulen opened this issue 4 years ago • 1 comments

Description

image

Steps to reproduce

  1. Enter very long strings with no breaks in ban reason & notes

Environment (complete as necessary)

  • Version/Git revision: Current

Not a massive issue, but should be addressed at some point...

sbulen avatar Jan 29 '22 19:01 sbulen

Two things,

a) If ban name is too long it gives error and logs it instead of giving SMF handled error;

Data too long for column 'name' at row 1
File: C:\xampp\htdocs\smf21\Sources\ManageBans.php
Line: 1565

b) We already have word_break as a class... can be added to the following parts to resolve the issue...

https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Sources/ManageBans.php#L147 https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Sources/ManageBans.php#L161 https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Sources/ManageBans.php#L174

XinYenFon avatar Feb 12 '22 14:02 XinYenFon