Skip to content

Commit

Permalink
Cocoapod escape
Browse files Browse the repository at this point in the history
  • Loading branch information
xtreme-shane-lattanzio committed May 7, 2021
1 parent c1f04fc commit 6fdf9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/license_finder/package_managers/cocoa_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def acknowledgements_path
end

def read_plist(pathname)
JSON.parse(`plutil -convert json -o - '#{pathname}'`)
JSON.parse(`plutil -convert json -o - '#{pathname.gsub!(/[^0-9A-Za-z.\-]/, '')}'`)
end
end
end

0 comments on commit 6fdf9d2

Please sign in to comment.