From 5d1e2e20e5b3ce391e468102ea6cb1b3f5fe99b0 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Wed, 16 Jun 2010 00:56:46 +0300 Subject: [PATCH] Fix downloading --- wp2git.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp2git.d b/wp2git.d index 9ce91d3..9c2342a 100644 --- a/wp2git.d +++ b/wp2git.d @@ -17,7 +17,7 @@ int main(string[] args) if (name.length>=2 && name[0]=='"' && name[$-1]=='"') name = name[1..$-1]; // strip quotes - if (spawnvp(P_WAIT, "curl", ["curl", "-d", "", "http://en.wikipedia.org/w/index.php?title=Special:Export&pages=" ~ name, "-o", "history.xml"])) + if (spawnvp(P_WAIT, "curl", ["curl", "-d", "\"\"", "http://en.wikipedia.org/w/index.php?title=Special:Export&pages=" ~ name, "-o", "history.xml"])) throw new Exception("curl error"); auto xml = new XmlDocument(new File("history.xml"));