Fix #22 (https://github.com/marekjm/diaspy/issues/22)
authorYax <kianby@madyanne.fr>
Sun, 25 Jun 2017 17:40:46 +0000 (19:40 +0200)
committerYax <kianby@madyanne.fr>
Sun, 25 Jun 2017 17:40:46 +0000 (19:40 +0200)
diaspy/connection.py

index 98025be68ee6762fdcad769518afd2cd1cd97ad9..8f592fff2b14a37ea043c9d37ebf50ec3acfaa03 100644 (file)
@@ -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'):