validate_path!

in lib/cc/config/prepare.rb [72:87]


          def validate_path!
            if path.blank?
              raise ArgumentError, "path cannot be be blank"
            end

            pathname = Pathname.new(path)

            if pathname.absolute?
              raise ArgumentError, "path cannot be absolute: #{path}"
            end

            if pathname.cleanpath.to_s != pathname.to_s || path.include?("..")
              raise ArgumentError, "path cannot point outside the current directory: #{path}"
            end
          end