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

fix: simplify file path validation #131

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

rb-union
Copy link
Contributor

@rb-union rb-union commented Feb 13, 2025

Refactor isLegalFile() to use QFileInfo/QDir for simpler path validation:

  • Ensure parent directory exists
  • Verify path is not a directory
  • Remove complex regex parsing

Log: Improved file path validation reliability
Bug: https://pms.uniontech.com/bug-view-303265.html

fix: Read ddf file data failed

Ensure serialization consistency, after Qt6,
size() uses qsizetype, default 8 bytes.

Log: Fix read ddf file failed.

Refactor isLegalFile() to use QFileInfo/QDir for simpler path validation:
- Ensure parent directory exists
- Verify path is not a directory
- Remove complex regex parsing

Log: Improved file path validation reliability
Bug: https://pms.uniontech.com/bug-view-303265.html
Ensure serialization consistency, after Qt6,
size() uses qsizetype, default 8 bytes.

Log: Fix read ddf file failed.
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pengfeixx, rb-union

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

@myk1343 myk1343 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[是否满足兼容性要求] Y
[是否满足commit提交规范] Y
[是否满足编码规范] Y
[Review结论] Pass
[Fail原因] N/A

@rb-union rb-union merged commit bc2064d into linuxdeepin:develop/snipe Feb 13, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants