OSDN Git Service

パスワードに&を含むとエラーになるバグを修正
[hatena-diary-el/hatena-diary.git] / hatena-diary-mode.el
index 6beae31..22e7a20 100644 (file)
     (call-process hatena-curl-command nil nil nil 
                  "-k"  "-c" hatena-cookie
                  "-x" hatena-proxy
-                 "-d" (concat "name=" hatena-usrid)
-                 "-d" (concat "password=" password)
+                 "-d" (concat "name=" (hatena-url-encode-string hatena-usrid))
+                 "-d" (concat "password=" (hatena-url-encode-string password))
                  "-d" (concat "autologin=1")
                  "-d" (concat "mode=enter")
                  "https://www.hatena.ne.jp/login"))