getssl icon indicating copy to clipboard operation
getssl copied to clipboard

Seems impossible to add ACL with password that contains an apostrophe

Open Kadigan opened this issue 2 years ago • 4 comments

Describe the bug Attempting to add an ACL that specifies a password with a single apostrophe is met with failure. No matter how I attempt to escape it, it seems to be filtered out of the output in a nonstandard way (so \' becomes \, \\\' becomes \\\ and so on - not the expected behaviour).

To Reproduce Steps to reproduce the behavior:

  1. Attempt to use a password with a single apostrophe (like abc'123)

Expected behavior I expected there to be some way of escaping the apostrophe.

Operating system (please complete the following information):

  • OS: macOS 10.12.6
  • Bash Version: bundled with OS

Additional context N/A

Kadigan avatar Feb 01 '22 11:02 Kadigan

For now I opted to simply add a second FTP account (with a different password, which does resolve the issue for me in this instance), but this will probably bite someone who can't get a second account and can't change the password.

Kadigan avatar Feb 01 '22 12:02 Kadigan

Can't you just do "abc'123" ?

I did not try that in getssl ACL as you describe - this is just generally how I would do that in bash

githubRover avatar Feb 01 '22 15:02 githubRover

Hi @Kadigan

Thanks for reporting this. I know there's an issue with quoting somewhere as occasionally the tests fail because of a carriage return in the token returned from letsencrypt.

I'll see if I can work out how to fix this.

timkimber avatar Feb 07 '22 21:02 timkimber

@McQgit

Can't you just do "abc'123" ?

No, you cannot. Trust me, I tried. :D

Kadigan avatar Feb 09 '22 17:02 Kadigan