]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk_objects.py
Fixed a bug in case there are more than one Content-Type headers.
[bookmarks_db.git] / bkmk_objects.py
index b6905fb24898919838258ca407ccd9576d25a766..121f908b2971d2568dc49b9d2533a47c96125fd0 100644 (file)
@@ -1,7 +1,7 @@
 """
    Objects to represent bookmarks.html structure
 
-   Written by Oleg BroytMann. Copyright (C) 2000-2007 PhiloSoft Design.
+   Written by Oleg Broytman. Copyright (C) 2000-2010 PhiloSoft Design.
 """
 
 import os, cgi
@@ -172,7 +172,6 @@ def break_tree(linear):
 
 def quote_title(title):
    if BKMK_FORMAT == "MOZILLA":
-      #title = cgi.escape(title, 1).replace("'", "'")
       title = title.replace("'", "'")
    return title
 
@@ -180,4 +179,5 @@ def unquote_title(title):
    if BKMK_FORMAT == "MOZILLA":
       from HTMLParser import HTMLParser
       title = HTMLParser().unescape(title.replace("&", '&'))
+      title = title.replace("'", "'")
    return title