This bug was already fixed in a previous commit. Added test case from the MDEV to prove it's fixed.
Attach a file by drag & drop or click to upload