File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ struct TLogQuery {
301
301
}
302
302
} catch (...) {
303
303
ythrow yexception ()
304
- << CurrentExceptionMessage ()
304
+ << EncodeHtmlPcdata ( CurrentExceptionMessage () )
305
305
<< " while parsing track log query: "
306
306
<< Text;
307
307
}
@@ -1853,7 +1853,7 @@ class TTracesHtmlPrinter {
1853
1853
try {
1854
1854
Os << src->GetStartTime ().ToStringUpToSeconds ();
1855
1855
} catch (...) {
1856
- Os << " error: " << CurrentExceptionMessage ();
1856
+ Os << " error: " << EncodeHtmlPcdata ( CurrentExceptionMessage () );
1857
1857
}
1858
1858
Os << " </td>"
1859
1859
<< " <td><div class=\" dropdown\" >"
@@ -3821,17 +3821,17 @@ class TLWTraceMonPage : public NMonitoring::IMonPage {
3821
3821
}
3822
3822
} catch (TPageGenBase& gen) {
3823
3823
out.Clear ();
3824
- out << gen.what ();
3824
+ out << EncodeHtmlPcdata ( gen.what () );
3825
3825
} catch (...) {
3826
3826
out.Clear ();
3827
3827
if (request.GetParams ().Get (" error" ) == " text" ) {
3828
3828
// Text error reply is helpful for ajax requests
3829
3829
out << NMonitoring::HTTPOKTEXT;
3830
- out << CurrentExceptionMessage ();
3830
+ out << EncodeHtmlPcdata ( CurrentExceptionMessage () );
3831
3831
} else {
3832
3832
WWW_HTML (out) {
3833
3833
out << " <h2>Error</h2><pre>"
3834
- << CurrentExceptionMessage ()
3834
+ << EncodeHtmlPcdata ( CurrentExceptionMessage () )
3835
3835
<< Endl;
3836
3836
}
3837
3837
}
You can’t perform that action at this time.
0 commit comments