mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
12 lines
244 B
Ruby
12 lines
244 B
Ruby
require "open-uri"
|
|
|
|
class UsersController < ActionController::Base
|
|
def create
|
|
filename = params[:filename]
|
|
open(filename) # BAD
|
|
|
|
web_page = params[:web_page]
|
|
URI.open(web_page) # BAD - calls `Kernel.open` internally
|
|
end
|
|
end
|