Skip to content

Commit

Permalink
Added validation on Ctype and Mbstring vendors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 11, 2024
1 parent e2b6fb2 commit 568cb80
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions upload/system/vendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@

// symfony/polyfill-ctype
$autoloader->register('Symfony\Polyfill\Ctype', DIR_STORAGE . 'vendor/symfony/polyfill-ctype//', true);
require_once(DIR_STORAGE . 'vendor/symfony/polyfill-ctype/bootstrap.php');
if (is_file(DIR_STORAGE . 'vendor/symfony/polyfill-ctype/bootstrap.php')) {
require_once(DIR_STORAGE . 'vendor/symfony/polyfill-ctype/bootstrap.php');
}

// symfony/polyfill-mbstring
$autoloader->register('Symfony\Polyfill\Mbstring', DIR_STORAGE . 'vendor/symfony/polyfill-mbstring//', true);
require_once(DIR_STORAGE . 'vendor/symfony/polyfill-mbstring/bootstrap.php');
if (is_file(DIR_STORAGE . 'vendor/symfony/polyfill-mbstring/bootstrap.php')) {
require_once(DIR_STORAGE . 'vendor/symfony/polyfill-mbstring/bootstrap.php');
}

// twig/twig
$autoloader->register('Twig', DIR_STORAGE . 'vendor/twig/twig/src/', true);

0 comments on commit 568cb80

Please sign in to comment.