diff --git a/public/js/vendors.php b/public/js/vendors.php index e45dba29b..12c9a737d 100644 --- a/public/js/vendors.php +++ b/public/js/vendors.php @@ -29,7 +29,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ -if(is_file('../../vendors/javascript/'.$_GET['file'])) +if(is_file('../../vendors/javascript/'.$_GET['file']) && (preg_match('/(.+)\\.js/', $_GET['file']))) { readfile('../../vendors/javascript/'.$_GET['file']); }