commit a064f3d60cc5ee7be39c66fce9a8d241ce286f5b
Author: Robert Lyon <email address hidden>
Date: Fri Dec 6 12:33:53 2019 +1300
Bug 1855351: Allow restriction of file uploads to a whitelist
This patch allows:
- the setting of a whitelist via a config setting
- check if file extension is in the whitelist
- check if the mimetype matches expected mimetype
behatnotneeded
Change-Id: Ie20726870d45e5eff7bf076e55ec694145e7a7ac
Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/10645 /git.mahara. org/mahara/ mahara/ commit/ a064f3d60cc5ee7 be39c66fce9a8d2 41ce286f5b
Committed: https:/
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master
commit a064f3d60cc5ee7 be39c66fce9a8d2 41ce286f5b
Author: Robert Lyon <email address hidden>
Date: Fri Dec 6 12:33:53 2019 +1300
Bug 1855351: Allow restriction of file uploads to a whitelist
This patch allows:
- the setting of a whitelist via a config setting
- check if file extension is in the whitelist
- check if the mimetype matches expected mimetype
behatnotneeded
Change-Id: Ie20726870d45e5 eff7bf076e55ec6 94145e7a7ac
Signed-off-by: Robert Lyon <email address hidden>