Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
utils
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EIT-SWE
ux
utils
Commits
e053f5d3
Commit
e053f5d3
authored
Mar 27, 2020
by
Ryan Diehl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appease the linter
parent
295d009c
Pipeline
#96281
passed with stages
in 5 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
libs/utils/browser/src/lib/cookie/cookie.service.ts
libs/utils/browser/src/lib/cookie/cookie.service.ts
+7
-3
No files found.
libs/utils/browser/src/lib/cookie/cookie.service.ts
View file @
e053f5d3
import
{
APP_BASE_HREF
}
from
'
@angular/common
'
;
import
{
Injectable
,
Injector
}
from
'
@angular/core
'
;
import
{
Logger
}
from
'
@psu/utils/logger
'
;
import
{
CookieOptions
}
from
'
./cookie-options.model
'
;
import
{
isBlank
,
isString
,
mergeOptions
,
safeDecodeURIComponent
,
safeJsonParse
}
from
'
./utils
'
;
...
...
@@ -192,9 +193,12 @@ export class CookieService implements ICookieService {
// - 4096 bytes per cookie
const
cookieLength
=
str
.
length
+
1
;
if
(
cookieLength
>
4096
)
{
console
.
log
(
`Cookie \'
${
name
}
\' possibly not set or overflowed because it was too large (
${
cookieLength
}
> 4096 bytes)!`
);
const
logger
=
this
.
injector
.
get
<
Logger
>
(
Logger
);
if
(
logger
)
{
logger
.
log
(
`Cookie \'
${
name
}
\' possibly not set or overflowed because it was too large (
${
cookieLength
}
> 4096 bytes)!`
);
}
}
return
str
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment