On 29/7/2006, at 0:24, Charilaos Skiadas wrote:
> Should have included the code for the escaping. Here it is:
>
> def e_sh(str)
> str.to_s.gsub(/[^a-zA-Z0-9_.\/]/, "\\\\\\0")
> end
I reckon this is from Support/lib/escape.rb?
Try this version instead:
def e_sh(str)
str.to_s.gsub(/(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF])/, '\\')
end