Module: CIFS

Defined in:
lib/jcifs.rb

Overview

Author

Danijel Tasov (dt@korn.shell.la)

Copyright

Copyright (c) 2011 Danijel Tasov

License

Beerware

Defined Under Namespace

Modules: File Classes: DirReader, FileReader, RangeFileReader, RangeHelper, RangeNotSatisfiableException

Class Method Summary collapse

Class Method Details

.escape_uri(uri) ⇒ Object

FIXME

Seems jetty and webrick behave differently here :(



19
20
21
22
# File 'lib/jcifs.rb', line 19

def CIFS::escape_uri(uri)
    uri = URI.escape(uri, /[^A-Za-z0-9\/]/)
    uri.gsub(/%2B/, '%252B')
end