Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly escaping filename for urls.

Fixing issue where scpasting a file with a reserved character, such as
"Makefile|server" scps a file called "Makefile%7cserver", but the web
url is "Makefil%7cserver" rather than the properly encoded
"Makefile%257cserver".
  • Loading branch information...
commit 2eea9029192ef113f3744597dacc49c0a6944b88 1 parent fa8cdb1
@justinabrahms authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  scpaste.el
View
2  scpaste.el
@@ -104,7 +104,7 @@ You must have write-access to this directory via `scp'.")
(name (url-hexify-string (if (equal "" original-name)
(buffer-name)
original-name)))
- (full-url (concat scpaste-http-destination "/" name ".html"))
+ (full-url (concat scpaste-http-destination "/" (url-hexify-string name) ".html"))
(scp-destination (concat scpaste-scp-destination "/" name ".html"))
(scp-original-destination (concat scpaste-scp-destination "/" name))
(tmp-file (concat temporary-file-directory "/" name)))
Please sign in to comment.
Something went wrong with that request. Please try again.