mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-10-07 14:59:44 +00:00
SaveOperaLog shortens JsonResult to 100 characters before writing it. #944 changed that from a byte cut to a rune cut, but no test referenced it, so putting the byte cut back would turn nothing red. The test drives the real SaveOperaLog with 150 three-byte characters and reads the row back: the stored value must be valid UTF-8 and keep exactly 100 characters. With the byte cut restored it fails with an invalid trailing byte and 34 characters kept.