Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/server/server-cookies.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Inject, Injectable } from '@angular/core';
import { CookiesOptions } from '../cookies-options';
import { CookiesOptionsService } from '../cookies-options.service';
import { CookiesService } from '../cookies.service';
import { isString, mergeOptions } from '../utils';
import { isString, mergeOptions, safeDecodeURIComponent } from '../utils';

@Injectable()
export class ServerCookiesService extends CookiesService {
Expand All @@ -24,7 +24,7 @@ export class ServerCookiesService extends CookiesService {
const cookies: { [key: string]: any } = {};
for (const name in allCookies) {
if (typeof allCookies[name] !== 'undefined') {
cookies[name] = decodeURIComponent(allCookies[name]);
cookies[name] = safeDecodeURIComponent(allCookies[name]);
}
}
return cookies;
Expand Down