New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

merged 1 commit into from May 17, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings


Just for now

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
  • Loading branch information...
justinabrahms committed Mar 18, 2012
commit 2eea9029192ef113f3744597dacc49c0a6944b88
@@ -104,7 +104,7 @@ You must have write-access to this directory via `scp'.")
(name (url-hexify-string (if (equal "" 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)))
ProTip! Use n and p to navigate between commits in a pull request.