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 file name sanitization for manual theme scan (#88) #89

Merged
merged 2 commits into from
Dec 30, 2020

Conversation

stklcode
Copy link
Contributor

sanitize_file() strips all directory separators from the file path that is passed via AJAX. We now simply sanitize the string, as the actual file path is validated during the process anyway.

fixes #88

sanitize_file() strips all directory separators from the file path
that is passed via AJAX. We now simply sanitize the string, as the
actual file path is validated during the process anyway.
@stklcode stklcode added the bug label Dec 30, 2020
@stklcode stklcode added this to the 1.4.1 milestone Dec 30, 2020
@codecov-io
Copy link

codecov-io commented Dec 30, 2020

Codecov Report

Merging #89 (530d34a) into develop (9530419) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop      #89   +/-   ##
==========================================
  Coverage      26.51%   26.51%           
  Complexity       147      147           
==========================================
  Files              5        5           
  Lines            513      513           
==========================================
  Hits             136      136           
  Misses           377      377           
Impacted Files Coverage Δ Complexity Δ
inc/class-antivirus.php 13.22% <0.00%> (ø) 83.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9530419...530d34a. Read the comment docs.

Copy link
Member

@patrickrobrecht patrickrobrecht left a comment

Choose a reason for hiding this comment

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

LGTM. I've resolved the merge conflict in CHANGELOG.md. If Travis approves as well, I'll merge this PR.

@patrickrobrecht patrickrobrecht merged commit a8608a3 into develop Dec 30, 2020
@patrickrobrecht patrickrobrecht deleted the fix/filename-sanitization branch December 30, 2020 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manual scan broken since 1.4
3 participants