Skip to content
Snippets Groups Projects
Commit 186b5722 authored by catch's avatar catch
Browse files

Issue #3445072 by longwave, Anybody: Improve "The libraries to include are...

Issue #3445072 by longwave, Anybody: Improve "The libraries to include are encoded incorrectly" check and message

(cherry picked from commit 803c9429)
parent f3b31f50
No related branches found
No related tags found
12 merge requests!12802Issue #3537193 by opauwlo: Add enable absolute path option for CKEditor5 image uploads,!12745Fixed: Path alias language doesn't changes on changing of node language,!12684Issue #3220784,!12537Add ViewsConfigUpdater deprecation support for default_argument_skip_url,!12523Issue #3493858 by vidorado, xavier.masson, smustgrave: Extend ViewsBlockBase...,!122353526426-warning-for-missing,!11958Issue #3490507 by alexpott, smustgrave: Fix bogus mocking in...,!11769Issue #3517987: Add option to contextual filters to encode slashes in query parameter.,!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...,!8325Update file Sort.php,!8095Expose document root on install
Pipeline #163679 passed
Pipeline: drupal

#163720

    Pipeline: drupal

    #163714

      Pipeline: drupal

      #163702

        +1
        ......@@ -162,10 +162,11 @@ public function deliver(Request $request, string $file_name) {
        $attached_assets = new AttachedAssets();
        $include_libraries = explode(',', UrlHelper::uncompressQueryParameter($request->query->get('include')));
        // Check that library names are in the correct format.
        $validate = function ($libraries_to_check) {
        foreach ($libraries_to_check as $library) {
        if (substr_count($library, '/') !== 1) {
        throw new BadRequestHttpException('The libraries to include are encoded incorrectly.');
        if (substr_count($library, '/') === 0) {
        throw new BadRequestHttpException(sprintf('The "%s" library name must include at least one slash.', $library));
        }
        }
        };
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment