Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
这条 PR 修复了 #1597 问题,其问题的核心是在 Contents.php 当中的这段 Code:
它检查了 field 名称的「有效性」,并且会自动过滤无效的field,无效 field 的标准是:
但是这一标准并没有在前端进行检验,提交的时候如果不满足条件过滤过程是静默的,这会让用于产生自己的数据没有被正确保存的幻觉。
本 PR 加入了一个实时的 field name 校验,如果输入了非法值,浏览器会立刻提醒用户进行修改。