From a65583eec63205cb5084a2ceab191dc2e709fd47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 15 Jul 2020 13:42:29 +0200 Subject: [PATCH] Strip directories from filename in getFont.php --- wcfsetup/install/files/font/getFont.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/font/getFont.php b/wcfsetup/install/files/font/getFont.php index 0591980274..4821d3d11d 100644 --- a/wcfsetup/install/files/font/getFont.php +++ b/wcfsetup/install/files/font/getFont.php @@ -42,7 +42,7 @@ else { if (!empty($_GET['family'])) { $filename .= 'families/'.basename($_GET['family']).'/'; } - $filename .= $_GET['filename']; + $filename .= basename($_GET['filename']); } $type = pathinfo($filename, PATHINFO_EXTENSION); -- 2.20.1