Skip to content

Commit 4c57194

Browse files
committed
Fix parsing of revalidation parameter
1 parent f167790 commit 4c57194

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

openid-connect-server-webapp/src/main/webapp/WEB-INF/views/sessionState.jsp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ new m,new m,new m,new m,new m,new m];break;case "SHA-512":a=[new m,new m,new m,n
4343
2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,
4444
2756734187,3204031479,3329325298];"function"===typeof define&&define.amd?define(function(){return w}):"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(module.exports=w),exports=w):I.jsSHA=w})(this);
4545
46-
/* isInteger Polyfill*/
47-
Number.isInteger = Number.isInteger || function(value) {
48-
return typeof value === 'number' &&
49-
isFinite(value) &&
50-
Math.floor(value) === value;
51-
};
52-
5346
(function (config) {
5447
5548
/* configuration defaults (if not set, normally assigned already in sessionState.jsp) */
@@ -63,8 +56,8 @@ new m,new m,new m,new m,new m,new m];break;case "SHA-512":a=[new m,new m,new m,n
6356
}
6457
6558
/* revalidation may be overwritten by an iframe parameter*/
66-
var revalidate = getQueryParameterByName("revalidate");
67-
if (revalidate && Number.isInteger(revalidate)) {
59+
var revalidate = parseInt(getQueryParameterByName("revalidate"));
60+
if (revalidate) {
6861
config.revalidate = revalidate;
6962
logMessage("Revalidation is now set to " + revalidate + " seconds.");
7063
}

0 commit comments

Comments
 (0)