Skip to content

Commit 909c6ee

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: Use mb_convert_encoding instead of utf8_decode [FrameworkBundle] Always add CacheCollectorPass Fix "Notice: Undefined index: headers" in messenger with Oracle Indicate support for doctrine/persistence 3 Replace deprecated String.prototype.substr()
2 parents 5afc200 + 2834312 commit 909c6ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Resources/views/Profiler/base_js.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@ if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
351351
352352
/* prevent logging AJAX calls to static and inline files, like templates */
353353
var path = url;
354-
if (url.substr(0, 1) === '/') {
354+
if (url.slice(0, 1) === '/') {
355355
if (0 === url.indexOf('{{ request.basePath|e('js') }}')) {
356-
path = url.substr({{ request.basePath|length }});
356+
path = url.slice({{ request.basePath|length }});
357357
}
358358
}
359359
else if (0 === url.indexOf('{{ (request.schemeAndHttpHost ~ request.basePath)|e('js') }}')) {
360-
path = url.substr({{ (request.schemeAndHttpHost ~ request.basePath)|length }});
360+
path = url.slice({{ (request.schemeAndHttpHost ~ request.basePath)|length }});
361361
}
362362
363363
if (!path.match(new RegExp({{ excluded_ajax_paths|json_encode|raw }}))) {

0 commit comments

Comments
 (0)