Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0, 3.5
-
Fix Version/s: 3.5
-
Component/s: Antivirus, Filepicker
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_30_STABLE, MOODLE_35_STABLE
-
Fixed Branches:MOODLE_35_STABLE
-
Epic Link:
-
Pull from Repository:
-
Pull Master Branch:
MDL-50907-master -
Pull Master Diff URL:
Description
We already have antiviruses_scan_file () function designed to scan file. It worth creating a separate function to scan data (stored in variable value). While for command-line running mode it would still need to be stored in the file first (similar to what is done here but in the ClamAV plugin level), unix-socket running mode gives possibility to scan data directly using INSTREAM command.MDL-50887
This function potentially could be used to scan html data submitted by users to avoid issues similar to MDL-47625.