From c2795a3200d8ac415fdcdb8c56c3e3d92176799b Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 25 May 2026 04:39:24 +0800 Subject: [PATCH] 4-natours/after-section-13/public/js/bundle.js: fix CVE-2021-3749 --- 4-natours/after-section-13/public/js/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4-natours/after-section-13/public/js/bundle.js b/4-natours/after-section-13/public/js/bundle.js index 09bc8108c2..2cf32b8415 100644 --- a/4-natours/after-section-13/public/js/bundle.js +++ b/4-natours/after-section-13/public/js/bundle.js @@ -6796,7 +6796,7 @@ function isURLSearchParams(val) { * @returns {String} The String freed of excess whitespace */ function trim(str) { - return str.replace(/^\s*/, '').replace(/\s*$/, ''); + return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); } /**