Revision 45e05273
Added by Stephen Benjamin about 10 years ago
lib/proxy/util.rb | ||
---|---|---|
require 'open3'
|
||
require 'shellwords'
|
||
require 'base64'
|
||
|
||
module Proxy::Util
|
||
|
||
... | ... | |
Shellwords.escape(command)
|
||
end
|
||
end
|
||
|
||
def strict_encode64(str)
|
||
if Base64.respond_to?(:strict_encode64)
|
||
Base64.strict_encode64(str)
|
||
else
|
||
Base64.encode64(str).delete("\n")
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
fixes #1809 - freeipa integration to smartproxy