Commit Graph

22596 Commits

Author SHA1 Message Date
Vanessa
fa4bdd5adc 🎨 https://github.com/siyuan-note/siyuan/pull/17647 2026-05-11 13:24:14 +08:00
Jeffrey Chen
6ee1b8d989 Improve export file (#17647)
* 🎨 Improve export file

* 🎨 Improve export file
2026-05-11 12:57:52 +08:00
Jeffrey Chen
c20212594d ♻️ Extract IsMobileContainer and replace the mobile ternary judgment (#17661) 2026-05-11 00:03:33 +08:00
Daniel
06c2c89a95 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 23:50:24 +08:00
Daniel
971bfb4786 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 23:38:44 +08:00
Daniel
27b4c72b5d 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 23:36:07 +08:00
Jeffrey Chen
ff9d839c00 🔒 Escape package name, version, keywords and funding https://github.com/siyuan-note/siyuan/security/advisories/GHSA-27qc-m5gf-jv5r (#17660) 2026-05-10 23:32:19 +08:00
Daniel
6dd37652cc 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
v3.7.0-dev2
2026-05-10 23:29:57 +08:00
Daniel
fe1cb8ac6c 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 23:20:26 +08:00
Daniel
12ae99d573 🎨 Improve IFrame block https://github.com/siyuan-note/siyuan/issues/17659
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 22:51:35 +08:00
Vanessa
d3ff0f67cb Merge remote-tracking branch 'origin/dev' into dev 2026-05-10 20:15:09 +08:00
Vanessa
be2718888d 🎨 https://github.com/siyuan-note/siyuan/issues/17628 2026-05-10 20:14:51 +08:00
Daniel
74cdf2ca9f 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gmmv-4cc5-wr9r
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 20:09:48 +08:00
Vanessa
0ace03b7e9 Merge remote-tracking branch 'origin/dev' into dev 2026-05-10 20:03:35 +08:00
Vanessa
4ac49f6705 🎨 https://github.com/siyuan-note/siyuan/issues/13207 2026-05-10 20:03:18 +08:00
Daniel
58da3744e1 🎨 Improve text
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 19:59:40 +08:00
Daniel
2aec075cce 🎨 Improve text
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 19:59:23 +08:00
Daniel
038dc6e183 🎨 Improve wal queue
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 19:32:03 +08:00
Qiaochu Hu
3071ad22d4 🔒 Use parameterized queries in putStat to prevent SQL injection (#17658)
The putStat function in kernel/sql/stat.go was building SQL queries
via string concatenation instead of using parameterized queries.
While currently only called with hardcoded internal values, this is
a defense-in-depth improvement that prevents future SQL injection
if the function is ever called with user-controlled input.

The execStmtTx helper already supports variadic args, so this is
a straightforward change to use ? placeholders.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 19:24:21 +08:00
Qiaochu Hu
890d2c5a67 🔒 Fix path traversal vulnerability in /repo/diff/ endpoint (#17657)
The /repo/diff/ endpoint used the URL path parameter directly in
filepath.Join without validation, allowing an authenticated admin
user to read arbitrary files via path traversal sequences.

This fix:
- Cleans the path with filepath.Clean
- Rejects paths containing ".."
- Validates the final path with IsSubPath to ensure it stays within
  {TempDir}/repo/diff/

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 19:20:31 +08:00
Vanessa
30d22d71bd Merge remote-tracking branch 'origin/dev' into dev 2026-05-10 19:03:48 +08:00
Vanessa
926c13317d 🎨 https://github.com/siyuan-note/siyuan/issues/13207 2026-05-10 19:03:31 +08:00
Qiaochu Hu
b763d787d1 🔒 Fix path traversal vulnerability in /export/temp/ endpoint (#17656)
The /export/temp/ endpoint used c.Request.URL.Path directly in
filepath.Join without any validation, allowing path traversal via
sequences like /export/temp/../../ to access files outside the
intended temp directory.

This fix:
- Constrains file access to {TempDir}/export/temp/ base directory
- Cleans the relative path with filepath.Clean
- Rejects paths containing ".."
- Validates the final path with IsSubPath check

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 19:01:32 +08:00
Vanessa
bb55695925 🎨 https://github.com/siyuan-note/siyuan/issues/13207 2026-05-10 18:30:05 +08:00
Vanessa
3745b9feaa Merge remote-tracking branch 'origin/dev' into dev 2026-05-10 15:48:01 +08:00
Vanessa
ce696ca1d1 🎨 https://github.com/siyuan-note/siyuan/issues/13207 2026-05-10 15:47:40 +08:00
Daniel
cf48690f97 🎨 Improve text https://github.com/siyuan-note/siyuan/issues/14414
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 15:43:51 +08:00
Daniel
06065475cd 🎨 Improve text https://github.com/siyuan-note/siyuan/issues/14414
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 15:36:29 +08:00
Daniel
70e6e2b216 🎨 Improve text https://github.com/siyuan-note/siyuan/issues/14414
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 15:27:31 +08:00
Daniel
87eee0db67 Shorthands on HarmonyOS https://github.com/siyuan-note/siyuan/issues/17654
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 13:46:42 +08:00
Daniel
9f00ad2db9 Shorthands on HarmonyOS https://github.com/siyuan-note/siyuan/issues/17654
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 13:41:37 +08:00
Daniel
dd461d2f39 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 10:00:59 +08:00
Daniel
0e23d6496e 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 09:01:32 +08:00
Vanessa
8c430b9cf6 Merge remote-tracking branch 'origin/dev' into dev 2026-05-09 21:32:35 +08:00
Vanessa
3d38aa07b7 🎨 https://github.com/siyuan-note/siyuan/issues/17628 2026-05-09 21:32:09 +08:00
Daniel
c548950b77 Shorthands on mobile https://github.com/siyuan-note/siyuan/issues/14414
Signed-off-by: Daniel <845765@qq.com>
2026-05-09 20:35:38 +08:00
Vanessa
54e9554261 Merge remote-tracking branch 'origin/dev' into dev 2026-05-09 20:33:36 +08:00
Vanessa
45059731f3 🎨 https://github.com/siyuan-note/siyuan/pull/17627 2026-05-09 20:32:42 +08:00
Yingyi / 颖逸
c59b8ec7f7 🎨 Harden RPC handling and improve error reporting in kernel plugin (#17655)
* perf(kernel-plugin): strengthen RPC, sandbox, and form parsing

Validate and harden plugin RPC and request handling: ensure RPC API call first argument is a string; treat missing method using HasValue(); return InvalidParams for malformed params; bail out early when kernel is incompatible or missing. Fix sandbox promise invocation to return after reporting errors to avoid continuing on nil/invalid values. Change RequestForm files to []*RequestFile, allocate pointer entries, properly open/read/close uploaded files, and clone request headers before modifying them. These changes prevent nil derefs, resource leaks, and improve error reporting.

* perf(kernel-plugin): Skip empty Content-Type; use safe type assertions

Avoid setting an empty Content-Type header in the proxy when gin.Context.ContentType() is empty. Replace unsafe type assertions with comma-ok checks when converting request and file body bytes to Data objects to prevent panics on unexpected types or nil pointers. Also comment out assignments of c.Request.Context().Err() in plugin request handlers to avoid overwriting other error state on context cancellation. Affected files: kernel/api/network.go, kernel/plugin/plugin.go, kernel/plugin/sandbox.go.
2026-05-09 19:38:54 +08:00
Daniel
55f8562d8d ⬆️ Upgrade pnpm
Signed-off-by: Daniel <845765@qq.com>
2026-05-09 19:38:37 +08:00
Daniel
38be2cd887 Shorthands on mobile https://github.com/siyuan-note/siyuan/issues/14414
Signed-off-by: Daniel <845765@qq.com>
2026-05-09 18:33:19 +08:00
Vanessa
c1c0aa82ea Merge remote-tracking branch 'origin/dev' into dev 2026-05-09 16:27:07 +08:00
Vanessa
c3538430e9 🎨 https://github.com/siyuan-note/siyuan/issues/17384 2026-05-09 16:26:51 +08:00
JavenLu233
eed0866bb2 Fix/issue 17604 (#17627)
* 🎨 https://github.com/siyuan-note/siyuan/issues/17604

* Potential fix for pull request finding

更加严格的校验

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix: get nearest li from precise block

* fix: 修正range逻辑

* fix: 撤销对原逻辑的改动

* fix: 代码更正

---------

Co-authored-by: JavenLu233 <javenlu233@163.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-09 16:20:53 +08:00
Vanessa
bc4978db03 Merge remote-tracking branch 'origin/dev' into dev 2026-05-09 16:06:03 +08:00
Vanessa
884639cc4d 🎨 https://github.com/siyuan-note/siyuan/issues/17384 2026-05-09 16:05:51 +08:00
Daniel
fdf2ead199 🎨 New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
2026-05-09 15:31:40 +08:00
Vanessa
9935a691d8 🎨 https://github.com/siyuan-note/siyuan/issues/10749 2026-05-09 13:02:41 +08:00
Vanessa
0af3ff9988 Merge remote-tracking branch 'origin/dev' into dev 2026-05-09 12:53:06 +08:00
Vanessa
a37d773bbc 🎨 https://github.com/siyuan-note/siyuan/issues/7976 2026-05-09 12:52:44 +08:00