Re: BUG: Attachments with names containing parentheses can not be opened
Darren Salt <listspam@...> wrote:
> I've recently received some emails with attachments with names containing
> parentheses. MPro (2.73.6) is unable to handle this. The
> immediately-visible result is MPro reporting “unable to open”; checking in
> /tmp/gemini* shows the presence of the file.
> Editing the message to remove the parentheses allows the file to be opened
> via MPro.
> This looks to me like a failure to fully mangle the file name so that
> shell-special characters are properly escaped or substituted for use in a
> system() call.
> Because of how system() works (invocation of /bin/sh – here, that's a
> symlink whuch points to bash, but I wouldn't like to rely on it being dash
> or bash), I prefer to use fork()+exec() (in this case, execlp() or
> execvp()) and avoid any need to do any escaping or susbstitution other
> than of directory separators.
Is that the RiscOS version of MessPro as the latest other platform version
is 18.104.22.16802 I believe.
Sorry I can't comment on your problem after saying that, I have not
experienced it but I've probably never had an attachment containing brackets
This message was sent via the gemini-users mailing list
To unsubscribe, mail gemini-users+unsubscribe@...