mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix localclient authentication by stripping the lines read from the auth file
This commit is contained in:
parent
41d26bbbce
commit
58be1f08fc
3 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
=== Deluge 1.2.0_rc2 (In Development) ===
|
=== Deluge 1.2.0_rc2 (In Development) ===
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
* Fix path errors when adding torrents externally in Windows
|
* Fix path errors when adding torrents externally in Windows
|
||||||
|
* Fix localclient authentication by stripping the lines read from the auth file
|
||||||
|
|
||||||
=== Deluge 1.2.0_rc1 (07 October 2009) ===
|
=== Deluge 1.2.0_rc1 (07 October 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
|
|
|
@ -124,6 +124,7 @@ class AuthManager(component.Component):
|
||||||
if line.startswith("#"):
|
if line.startswith("#"):
|
||||||
# This is a comment line
|
# This is a comment line
|
||||||
continue
|
continue
|
||||||
|
line = line.strip()
|
||||||
try:
|
try:
|
||||||
lsplit = line.split(":")
|
lsplit = line.split(":")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
|
@ -301,6 +301,7 @@ def get_localhost_auth():
|
||||||
if line.startswith("#"):
|
if line.startswith("#"):
|
||||||
# This is a comment line
|
# This is a comment line
|
||||||
continue
|
continue
|
||||||
|
line = line.strip()
|
||||||
try:
|
try:
|
||||||
lsplit = line.split(":")
|
lsplit = line.split(":")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue