The result should be ~username, but because it is passed to the constructor, which expands tildes, the result becomes /home/username.
This issue relates to #190, in that even the desired result of ~username is perhaps unsafe in that it could still end up converted to /home/username. So perhaps the safer answer would be ./~username as proposed in #190.
Consider the following example:
The result should be
~username
, but because it is passed to the constructor, which expands tildes, the result becomes/home/username
.This issue relates to #190, in that even the desired result of
~username
is perhaps unsafe in that it could still end up converted to/home/username
. So perhaps the safer answer would be./~username
as proposed in #190.