projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d64564e
)
Hotfix: CSRF token extraction works for older versions of Diaspora, fix #18
author
Marek Marecki
<marekjm@ozro.pw>
Wed, 13 May 2015 20:37:41 +0000
(22:37 +0200)
committer
Marek Marecki
<marekjm@ozro.pw>
Wed, 13 May 2015 20:37:41 +0000
(22:37 +0200)
diaspy/connection.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/connection.py
b/diaspy/connection.py
index 4a2a6e913d81496cfc2f87dd9c417d81661d23a5..3a6830db498c3d59a3694f5b6228443a9dfc6d47 100644
(file)
--- a/
diaspy/connection.py
+++ b/
diaspy/connection.py
@@
-184,7
+184,7
@@
class Connection():
"""
request = self.get('stream')
token = self._token_regex.search(request.text)
- if token is None: self._token_regex_2.search(request.text)
+ if token is None:
token =
self._token_regex_2.search(request.text)
if token is not None: token = token.group(1)
else: raise errors.TokenError('could not find valid CSRF token')
self._token = token