files_antivirus icon indicating copy to clipboard operation
files_antivirus copied to clipboard

Allow ignoring specific files using a configuration property

Open lars-sh opened this issue 10 months ago • 1 comments

Hi everyone,

this Pull Request does not follow any standards as I'm not involved in PHP or Nextcloud development usually. Though, I was working on a quick-fix to implement some simple way to ignore false-positive findings and it might be interesting for others, too.

This might relate to #88 and #178. Feel free to copy, rework or modify my changes.

The idea is to introduce a simple config.php property called antivirus_ignore that takes either an array of full file paths or a string that needs to be a valid regular expression which needs to match the file path using preg_match. If so, the file is ignored and no more warning is reported.

You can check this e.g. using occ files_antivirus:scan on the command line but it applies to the background scanner in the same way.

lars-sh avatar Feb 08 '25 21:02 lars-sh

Hello there, Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

github-actions[bot] avatar Feb 23 '25 02:02 github-actions[bot]