Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid characters for filenames are not scrubbed #10

Open
egypt opened this issue Mar 12, 2018 · 0 comments
Open

Invalid characters for filenames are not scrubbed #10

egypt opened this issue Mar 12, 2018 · 0 comments

Comments

@egypt
Copy link

egypt commented Mar 12, 2018

Links to download pages instead of direct to a file will look like /view.aspx?src=... which causes an error like this:

Invoke-WebRequest : Cannot perform operation because the wildcard path·
C:\Users\egypt\Desktop\powermeta-data\2018-03-12T11.45.30\view.aspx?src=https%3A%2F%2Fgo.redacted.com%2Frs%2Fredactedinc%2Fimages%2FQ314IndexData.xlsx di
At Z:\repo\PowerMeta\PowerMeta.ps1:479 char:11
+           Invoke-WebRequest $link -UserAgent $UserAgent -UseBasicPars ... 
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (C:\Users\egypt\...4IndexData.xlsx:String) [Invoke-WebRequest], FileNotFoundException
        + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant