instance method valid_path?

Ruby on Rails 4.2.9

Since v4.2.9 Last seen in v4.2.9 Private — implementation detail, not part of the public API

Signature

valid_path?(path)

No documentation comment.

Parameters

path req
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 90
      def valid_path?(path)
        path.valid_encoding? && !path.include?("\0")
      end

Defined in actionpack/lib/action_dispatch/middleware/static.rb line 90 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::FileHandler

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close