[2.0] Error if a member have pm labels with high ids (>60)

Started by digger, March 04, 2018, 01:51:50 PM

Previous topic - Next topic

digger

If a member have pm labels with id>60 and try to assign that label to any message it shows labels_too_many error.

There is a code in PersonalMessage.php file

// Check that this string isn't going to be too large for the database.
if ($set > 60)
$updateErrors++;

I think, here should be something like this


// Check that this string isn't going to be too large for the database.
if ($smcFunc['strlen']($set) > 60)
$updateErrors++;


Arantor


live627


shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Advertisement: