diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-01-19 22:35:24 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-01-19 22:35:24 +0100 |
commit | 98b88de6f2975a263f7564025e46f9ca93bb4350 (patch) | |
tree | 3ff80932f93ab085eddfed2e105400e354c5b1c6 /plugins/__init__.py | |
parent | f49044462df34065383cf0dbac991efacefa30bd (diff) |
also escape the URL when generating links
git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@216 86f53f14-5ff3-0310-afe5-9b438ce3f40c
Diffstat (limited to 'plugins/__init__.py')
-rw-r--r-- | plugins/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/__init__.py b/plugins/__init__.py index d215e8a..60e3ca7 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -3,7 +3,7 @@ # # Copyright (C) 1998, 1999 Albert Hopkins (marduk) # Copyright (C) 2002 Mike W. Meyer -# Copyright (C) 2005 Arthur de Jong +# Copyright (C) 2005, 2006 Arthur de Jong # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -136,7 +136,7 @@ def make_link(link,title=None): if config.REPORT_LINKS_IN_NEW_WINDOW: target='target="_blank" ' # gather some information about the link to report - return '<a href="'+link.url+'" '+target+'class="'+cssclass+'" title="'+escape(get_info(link),True)+'">'+escape(title)+'</a>' + return '<a href="'+escape(link.url, True)+'" '+target+'class="'+cssclass+'" title="'+escape(get_info(link),True)+'">'+escape(title)+'</a>' def print_parents(fp,link,indent=' '): # present a list of parents |