Skip to content

Commit

Permalink
icao xss
Browse files Browse the repository at this point in the history
  • Loading branch information
iakat committed Aug 20, 2024
1 parent 05e86b3 commit 48bddd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/inject_meta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ local args = ngx.req.get_uri_args()
if not args["icao"] then
return
end
-- get icao arg, but escape it.
local icao = ngx.escape_uri(args["icao"])

local icao = args["icao"]
local aircraft_types = require "aircraft_types"
local icao_ranges = require "icao_ranges"

Expand Down

0 comments on commit 48bddd0

Please sign in to comment.