Skip to content
Snippets Groups Projects
Commit c2916b62 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Ignore "session_lifetime" if it can not be converted to a number


When "session_lifetime" can not be converted to a number the interval
becomes a NaN due to dividing it by 2. This NaN was "dragged" over all
the other mathematical operations and caused the csrftoken to be got
again and again due to an infinite loop with no pauses in "setInterval".
Now, the interval is set to the default value instead if the
"session_lifetime" can not be converted to a number.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 9277d242
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment