Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query embed block scripts to be correctly escaped when exporting templates #13701

Closed
3 tasks done
simonmz20 opened this issue Jan 2, 2025 · 0 comments
Closed
3 tasks done
Assignees
Labels
Milestone

Comments

@simonmz20
Copy link

simonmz20 commented Jan 2, 2025

模板片段存在一个bug且找到了原因

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

如果需要再查询语句中使用模板片段,比如如下代码:

SELECT * FROM blocks 
WHERE type = 'i'
and updated like '%.action{now | date "20060102"}%'

将上述语句导出到模板之后,之后无法根据模板正确创建内容。
后面查看了模板源码后发现:导出到模板之时,会将语句中的"识别为"因此导致模板中查询语句无法正确查询
我现在的解决办法是直接到模板源码中修改相应内容就能正确查询。但是希望作者大大能够修复这个问题

Expected result

all of my expected result which i have describe in the upper input.

Screenshot or screen recording presentation

No response

Version environment

- Version: latest
- Operating System:  macOS 15.1
- Browser (if used): no

Log file

I have found the bug in the problem describing

More information

No response

@88250 88250 self-assigned this Jan 2, 2025
@88250 88250 changed the title 模板片段存在一个bug且找到了原因 Query embed block scripts to be correctly escaped when exporting templates Jan 2, 2025
@88250 88250 added Bug and removed Enhancement labels Jan 2, 2025
@88250 88250 added this to the 3.1.19 milestone Jan 2, 2025
@88250 88250 closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants