From 6159edcebbcb1c230113e18788a676035979a4c8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 1 Feb 2010 08:48:31 -0800 Subject: Improve name validation checks on local File references --- actions/getfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/getfile.php') diff --git a/actions/getfile.php b/actions/getfile.php index cd327e410..9cbe8e1d9 100644 --- a/actions/getfile.php +++ b/actions/getfile.php @@ -71,7 +71,7 @@ class GetfileAction extends Action $filename = $this->trimmed('filename'); $path = null; - if ($filename) { + if ($filename && File::validFilename($filename)) { $path = File::path($filename); } -- cgit v1.2.3-54-g00ecf