File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
browser-utils/src/metrics Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ export function _sendStandaloneLcpSpan(
7777 entry . element && ( attributes [ 'lcp.element' ] = htmlTreeAsString ( entry . element ) ) ;
7878 entry . id && ( attributes [ 'lcp.id' ] = entry . id ) ;
7979
80- // Trim URL to the first 200 characters.
81- entry . url && ( attributes [ 'lcp.url' ] = entry . url . trim ( ) . slice ( 0 , 200 ) ) ;
80+ entry . url && ( attributes [ 'lcp.url' ] = entry . url ) ;
8281
8382 // loadTime is the time of LCP that's related to receiving the LCP element response..
8483 entry . loadTime != null && ( attributes [ 'lcp.loadTime' ] = entry . loadTime ) ;
Original file line number Diff line number Diff line change @@ -217,5 +217,5 @@ function getFilenameFromUrl(url: string | undefined): string | undefined {
217217 return `<data:${ mimeType } ${ isBase64 ? ',base64' : '' } >` ;
218218 }
219219
220- return url . slice ( 0 , 1024 ) ;
220+ return url ; // it's fine to not truncate it as it's not put in a regex (https://codeql.github.com/codeql-query-help/javascript/js-polynomial-redos)
221221}
You can’t perform that action at this time.
0 commit comments