module Roda::RodaPlugins::UnescapePath::RequestMethods

  1. lib/roda/plugins/unescape_path.rb

Methods

Public Instance

  1. matched_path

Public Instance methods

matched_path()

Make sure the matched path calculation handles the unescaping of the remaining path.

[show source]
   # File lib/roda/plugins/unescape_path.rb
25 def matched_path
26   e = @env
27   Rack::Utils.unescape(e["SCRIPT_NAME"] + e["PATH_INFO"]).chomp(@remaining_path)
28 end