From: Tim Düsterhus Date: Wed, 15 Jul 2020 11:42:29 +0000 (+0200) Subject: Strip directories from filename in getFont.php X-Git-Tag: 5.3.0_Alpha_1~120^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a65583eec63205cb5084a2ceab191dc2e709fd47;p=GitHub%2FWoltLab%2FWCF.git Strip directories from filename in getFont.php --- 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);