@@ -194,7 +194,7 @@ static void PrintAnnotations(
194
194
while (extractors[i]->PopAnnotation (cur_time, &anno_time, &a)) {
195
195
PrintRealTime (os, anno_time);
196
196
PrintElapse (os, anno_time, last_time);
197
- os << ' ' << a ;
197
+ os << ' ' << WebEscape (a) ;
198
198
if (a.empty () || butil::back_char (a) != ' \n ' ) {
199
199
os << ' \n ' ;
200
200
}
@@ -249,7 +249,7 @@ static void PrintClientSpan(
249
249
if (abs_remote_side.ip == loopback_ip) {
250
250
abs_remote_side.ip = butil::my_ip ();
251
251
}
252
- os << " Requesting " << span.full_method_name () << ' @' << remote_side
252
+ os << " Requesting " << WebEscape ( span.full_method_name () ) << ' @' << remote_side
253
253
<< ' ' << protocol_name << ' ' << LOG_ID_STR << ' =' ;
254
254
if (FLAGS_rpcz_hex_log_id) {
255
255
os << Hex (span.log_id ());
@@ -346,7 +346,7 @@ static void PrintServerSpan(std::ostream& os, const RpczSpan& span,
346
346
os, span.start_callback_real_us (),
347
347
&last_time, extr, ARRAY_SIZE (extr))) {
348
348
entered_user_method = true ;
349
- os << " Enter " << span.full_method_name () << std::endl;
349
+ os << " Enter " << WebEscape ( span.full_method_name () ) << std::endl;
350
350
}
351
351
352
352
const int nclient = span.client_spans_size ();
@@ -359,7 +359,7 @@ static void PrintServerSpan(std::ostream& os, const RpczSpan& span,
359
359
os, span.start_send_real_us (),
360
360
&last_time, extr, ARRAY_SIZE (extr))) {
361
361
if (entered_user_method) {
362
- os << " Leave " << span.full_method_name () << std::endl;
362
+ os << " Leave " << WebEscape ( span.full_method_name () ) << std::endl;
363
363
} else {
364
364
os << " Responding" << std::endl;
365
365
}
@@ -665,7 +665,7 @@ void RpczService::default_method(::google::protobuf::RpcController* cntl_base,
665
665
} else {
666
666
os << span.log_id ();
667
667
}
668
- os << ' ' << span.full_method_name () << ' (' << span.request_size ()
668
+ os << ' ' << WebEscape ( span.full_method_name () ) << ' (' << span.request_size ()
669
669
<< " )=" << span.response_size ();
670
670
671
671
if (span.error_code () == 0 ) {
0 commit comments