| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1414,9 +1414,11 @@ static void Query(const FunctionCallbackInfo<Value>& args) { | |||
| 1414 | 1414 | Local<String> string = args[1].As<String>(); | |
| 1415 | 1415 | auto wrap = std::make_unique<Wrap>(channel, req_wrap_obj); | |
| 1416 | 1416 | ||
| 1417 | - node::Utf8Value name(env->isolate(), string); | ||
| 1417 | + node::Utf8Value utf8name(env->isolate(), string); | ||
| 1418 | + auto plain_name = utf8name.ToStringView(); | ||
| 1419 | + std::string name = ada::idna::to_ascii(plain_name); | ||
| 1418 | 1420 | channel->ModifyActivityQueryCount(1); | |
| 1419 | - int err = wrap->Send(*name); | ||
| 1421 | + int err = wrap->Send(name.c_str()); | ||
| 1420 | 1422 | if (err) { | |
| 1421 | 1423 | channel->ModifyActivityQueryCount(-1); | |
| 1422 | 1424 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments