zeropingheroes / lancache-autofill

Automatically fill a Lancache with content
GNU General Public License v3.0
132 stars 25 forks source link

Parenthesis in passwords results in a shell syntax error #22

Closed hashworks closed 6 years ago

hashworks commented 6 years ago
sh: -c: line 0: syntax error near unexpected token `('sh: -c: line 0: `unbuffer ~/steam/steamcmd.sh +login username password(foo$() A234A +@NoPromptForPassword 1 +quit  'Failed to authorise Steam account username
ilumos commented 6 years ago

Thanks for reporting.

Try changing this line:

https://github.com/zeropingheroes/lancache-autofill/blob/master/src/Services/SteamCmd/SteamCmd.php#L192

to:

        $arguments .= "+$argument \"$value\" ";

Don't have time to test currently, sorry!

ilumos commented 6 years ago

Fixed in b3147a7