From d75a197ac55623fe2e5e633e9fbf4e231731b5da Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 1 Oct 2005 16:26:12 +0000 Subject: [PATCH] rausgekratztes html unescapen --- mediawikibot.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mediawikibot.rb b/mediawikibot.rb index b8c74d3..cc0e0e2 100755 --- a/mediawikibot.rb +++ b/mediawikibot.rb @@ -2,10 +2,9 @@ module MediaWikiBot -require 'http-access2' +require 'cgi' require 'erb' -require 'parsedate' -include ParseDate +require 'http-access2' class WikiBot @@ -84,7 +83,7 @@ class WikiBot allpages_page = @client.get_content(@wiki + "Special:Allpages") allpages_page.scan(/title="(.*?)"/) do |m| - title = m[0] + title = CGI.unescapeHTML(m[0]) allpages.push(title) end @@ -103,7 +102,7 @@ class WikiBot what_links_here_page = @client.get_content(url_what_links_here(title)) what_links_here_page.scan(/