collections.style_sheet still rejects CJK characters

未关闭
#1,739 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
go, mysql
领域
backend, databases

调研方向

首先定位 collections.style_sheet schema 以及将其保留为 latin1 的数据库迁移,并将其与 v17 的 user-signature 字符集修复进行比较。在 MySQL 上复现保存包含 CJK 字符的自定义 CSS,然后验证迁移和应用程序行为是否允许 CSS 成功保存。

由索引模型根据 Issue 内容生成。

描述

Describe the bug

v17 fixed user signature's database charset issue to allow non-latin characters, but collections.style_sheet remains with latin1.
Because the fix requires a coordinated db migration I'll leave the code change to the maintainer.

Steps to reproduce (if necessary)

Enter customized CSS with CJK characters

Expected behavior

What should've happened?
CSS should be saved successfully

Application configuration
  • Single mode or Multi-user mode? Multi-user
  • Database? [mysql]
  • Open registration? [no]
  • Federation enabled? [yes]

Version or last commit: v0.17.2

主要语言
Go
星标
5.3k
派生
413
平均合并
3 天 5 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

writefreely/writefreely 的其他 Issue

查看 writefreely/writefreely 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。