From 9c225a7ec1a5219c6627ea2d76b2f5c0f9380621 Mon Sep 17 00:00:00 2001 From: Yax Date: Sun, 25 Jun 2017 19:40:46 +0200 Subject: [PATCH] Fix #22 (https://github.com/marekjm/diaspy/issues/22) --- diaspy/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diaspy/connection.py b/diaspy/connection.py index 98025be..8f592ff 100644 --- a/diaspy/connection.py +++ b/diaspy/connection.py @@ -24,7 +24,7 @@ class Connection(): _userinfo_regex = re.compile(r'window.current_user_attributes = ({.*})') # this is for older version of D* _token_regex_2 = re.compile(r'content="(.*?)"\s+name="csrf-token') - _userinfo_regex_2 = re.compile(r'gon.user=({.*});gon.preloads') + _userinfo_regex_2 = re.compile(r'gon.user=({.*?});gon.') _verify_SSL = True def __init__(self, pod, username, password, schema='https'): -- 2.25.1