Unicode characters in filenames cause the page to fail

Description of the issue:

When I open a video file named, “2022⁄05⁄05@15:57:05ᴇᴛ.Pairing W ⁄ @tenfinney On Hijri DevDeck Clock.x264.mp4” (where the character is Unicode 0x2044), the page crashes.

If I rename the file removing the s and the small caps, the page doesn’t die.

If I try to Ctrl-o open the file, it creates a file browser for the root of the file system. If I navigate to the directory with the video in it, it generates a listing, but all the filenames are blank. If I click on the icon for a file, it opens it successfully with the name uuencoded.

Exact URL of the website in question:

Did the issue present with default Shields settings? (yes/no)

Yes.

Does the site function as expected when Shields are turned off?

No.

Is there a specific Shields configuration that causes the site to break? If so, tell us that configuration. (yes/no):

No.

Does the site work as expected when using Chrome?

Yes. The page doesn’t crash in Chrome.

Brave version (check About Brave):

Version 1.38.111 Chromium: 101.0.4951.54 (Official Build) (64-bit) — Ubuntu 20.04

@dysbulic ,

The filename in question:

Screen Shot 2022-05-10 at 3.59.18 AM

Not good, to use in filenames:

  • forward slash
  • back slash
  • vertical ‘pipe’
  • comma
  • colon
  • semi-colon
  • square brackets
  • double-quotation marks

You might disagree with the characters I choose to use in my filenames, but your program shouldn’t choke on them. The filename is valid.