gpt4 book ai didi

ruby - 如何 cgi 转义 ruby​​ 凭据

转载 作者:行者123 更新时间:2023-12-04 17:30:15 28 4
gpt4 key购买 nike

我正在运行命令 bundle install 并不断收到以下错误
Please CGI escape your usernames and passwords before setting them for authentication.
我不确定如何让 CGI 转义我的凭据 - 有什么想法吗?谢谢

最佳答案

您可以在 irb 中执行此操作与 Ruby 的 CGI::Util模块:

$ irb
irb(main):001:0> require "cgi"
=> true
irb(main):002:0> CGI.escape "foo@example.com"
=> "foo%40example.com"

关于ruby - 如何 cgi 转义 ruby​​ 凭据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60418106/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com