PDF: Fix issue allowing PDF title to be spoofed

The getFilenameFromURL allowed a fragment to be crafted which would
modify the title displayed in Material PDF. This CL modifies to function
to ignore the URL fragment and query string, preventing this from
happening.

BUG=524007

Review URL: https://codereview.chromium.org/1311333002

Cr-Commit-Position: refs/heads/master@{#345269}
2 files changed