projects
/
feedingit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
103d74a
)
Ensure that the string passed to md5 is 7-bit clean.
author
Neal H. Walfield
<neal@walfield.org>
Sat, 10 Dec 2011 14:49:15 +0000
(14:49 +0000)
committer
Neal H. Walfield
<neal@walfield.org>
Sat, 10 Dec 2011 14:49:15 +0000
(14:49 +0000)
src/rss_sqlite.py
patch
|
blob
|
history
diff --git
a/src/rss_sqlite.py
b/src/rss_sqlite.py
index
9cbeb82
..
e64c8cc
100644
(file)
--- a/
src/rss_sqlite.py
+++ b/
src/rss_sqlite.py
@@
-54,6
+54,9
@@
import logging
logger = logging.getLogger(__name__)
def getId(string):
+ if issubclass(string.__class__, unicode):
+ string = string.encode('utf8', 'replace')
+
return md5.new(string).hexdigest()
def download_callback(connection):