Sha256: c5f63a3f08a2b82e14f63cded54ab1d77a1721aa90f9aa5dcc89ce6ecd4ae3de
Contents?: true
Size: 538 Bytes
Versions: 30
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true Prawn::SVG::Loaders::File.prepend (Module.new do attr_reader :jail_path def initialize root_path if Hash === root_path @jail_path = root_path[:root] root_path = root_path[:base] super else super @jail_path = self.root_path end end def assert_valid_path! path if jail_path && !(path.start_with? %(#{jail_path}#{File::SEPARATOR})) raise Prawn::SVG::UrlLoader::Error, %(file path points to location outside of jail #{jail_path}) end end end)
Version data entries
30 entries across 30 versions & 1 rubygems