Hi,
I'm using escapeshellarg() to pass a username and password to an external authentication program using exec().
I'm testing to see how escapeshellarg() works and when I pass the following type of password, it seems to handle single quotes funny:
ak!L2$i\h/5&3gdf'hgj
escapeshellarg() returns the following:
'ak!L2$i\h/5&3gdf'\''hgj' (those are two single quotes after the last slash)
However it seems weird how it returns f'\''hg.... Shouldn't the single quote translate into just \' ?
I was expecting it would return 'ak!L2$i\h/5&3gdf\'hgj' instead. Am I missing something?