The bug was found by @CAFxX, thanks! See issue #1940.
Attach a file by drag & drop or click to upload