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

Make Security/Open aware of URI.open #8894

Merged
merged 1 commit into from Oct 16, 2020

Commits on Oct 16, 2020

  1. Make Security/Open aware of URI.open

    This PR makes `Security/Open` aware of `URI.open` and
    tweaks the doc.
    `URI.open` has the same security risk as `Kernel#open`.
    
    ## `Kernel#open`
    
    ```console
    % ruby -ve "p open('| ls').read"
    ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
    "CHANGELOG.md\nCODE_OF_CONDUCT.md\nCONTRIBUTING.md\n...
    ```
    
    ## `URI.open`
    
    ```console
    % ruby -ropen-uri -ve "p URI.open('| ls').read"
    ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
    "CHANGELOG.md\nCODE_OF_CONDUCT.md\nCONTRIBUTING.md\n...
    ```
    koic committed Oct 16, 2020
    Copy the full SHA
    7da3629 View commit details
    Browse the repository at this point in the history