diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-11-15 04:15:45 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-11-15 04:15:45 +0300 |
commit | aa3ecbf2efc08a86ae1a68294ce7de829dac8ef0 (patch) | |
tree | 19aeffc7596633cb3428e0f4133b973769dfe6e7 /plugins/CoreHome/angularjs/common | |
parent | db7aeb562f478219837dad54f0bcc4fd4bad68da (diff) |
String can be urlencoded when parsing range dates in client. (#15158)
Diffstat (limited to 'plugins/CoreHome/angularjs/common')
-rw-r--r-- | plugins/CoreHome/angularjs/common/services/periods.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/angularjs/common/services/periods.js b/plugins/CoreHome/angularjs/common/services/periods.js index 6f2deadf73..9e6ba80f03 100644 --- a/plugins/CoreHome/angularjs/common/services/periods.js +++ b/plugins/CoreHome/angularjs/common/services/periods.js @@ -182,7 +182,7 @@ } else if (/^last/.test(strDate)) { return RangePeriod.getLastNRange(childPeriodType, strDate.substring(4)); } else { - var parts = strDate.split(','); + var parts = decodeURIComponent(strDate).split(','); return new RangePeriod(parseDate(parts[0]), parseDate(parts[1]), childPeriodType) } }; |