Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixing an issue with only single-y escaping filenames #3

Merged
merged 1 commit into from

2 participants

@justinabrahms

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 "Makefile%7cserver" rather than the properly encoded
"Makefile%257cserver".

@justinabrahms justinabrahms 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".
2eea902
@technomancy technomancy merged commit 75c7098 into technomancy:master
@technomancy
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 18, 2012
  1. @justinabrahms

    Properly escaping filename for urls.

    justinabrahms authored
    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".
This page is out of date. Refresh to see the latest.
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)))
Something went wrong with that request. Please try again.