commit c2bfd56c3b9ef32d247eb3e46afd442d5591c100
parent 0ce07c1d3fcbf8b21972faaae3dac5d425578fb9
Author: ukai <ukai>
Date: Wed, 5 Jun 2002 15:42:10 +0000
[w3m-dev 03206] Re: dict
* main.c (execdict): quote word
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-06 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 03206] Re: dict
+ * main.c (execdict): quote word
+
2002-06-06 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03204] INET6
diff --git a/main.c b/main.c
@@ -4831,7 +4831,8 @@ execdict(char *word)
displayBuffer(Currentbuf, B_NORMAL);
return;
}
- dictcmd = Sprintf("%s?%s", DictCommand, w)->ptr;
+ dictcmd = Sprintf("%s?%s", DictCommand,
+ Str_form_quote(Strnew_charp(w))->ptr)->ptr;
buf = loadGeneralFile(dictcmd, NULL, NO_REFERER, 0, NULL);
if (buf == NULL) {
disp_message("Execution failed", FALSE);