Incorrect logs truncate before inserting to database
- Status
- Closed
- Subject
- Incorrect logs truncate before inserting to database
- Version
- 10.x
- Category
- Error
- Developer Training
- Feature
- Logs (system & action)
- Resolution status
- New
- Submitted by
- MaxA
- Lastmod by
- syracine
- Rating
- Description
It happens, when multibyte strings is recording to database.
Function "substr" work incorrect with multibytes string.- Solution
Just replace used function from "substr()" to "mb_strcut()"
diff -r wiki/lib/logs/logslib.php tiki-10.2/lib/logs/logslib.php
204c204
< $param = mb_strcut($param, 0, '200');
> $param = substr($param, 0, '200');
- Workaround
- Correct in version 12 starting on 2013-07-14
- Importance
- 7
- Easy to solve?
- 10 easy
- Priority
- 70
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4509
- Created
- Tuesday 07 May, 2013 08:58:23 UTC
by MaxA - LastModif
- Sunday 14 July, 2013 21:48:26 UTC