File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ struct TLogQuery {
301301 }
302302 } catch (...) {
303303 ythrow yexception ()
304- << CurrentExceptionMessage ()
304+ << EncodeHtmlPcdata ( CurrentExceptionMessage () )
305305 << " while parsing track log query: "
306306 << Text;
307307 }
@@ -1853,7 +1853,7 @@ class TTracesHtmlPrinter {
18531853 try {
18541854 Os << src->GetStartTime ().ToStringUpToSeconds ();
18551855 } catch (...) {
1856- Os << " error: " << CurrentExceptionMessage ();
1856+ Os << " error: " << EncodeHtmlPcdata ( CurrentExceptionMessage () );
18571857 }
18581858 Os << " </td>"
18591859 << " <td><div class=\" dropdown\" >"
@@ -3821,17 +3821,17 @@ class TLWTraceMonPage : public NMonitoring::IMonPage {
38213821 }
38223822 } catch (TPageGenBase& gen) {
38233823 out.Clear ();
3824- out << gen.what ();
3824+ out << EncodeHtmlPcdata ( gen.what () );
38253825 } catch (...) {
38263826 out.Clear ();
38273827 if (request.GetParams ().Get (" error" ) == " text" ) {
38283828 // Text error reply is helpful for ajax requests
38293829 out << NMonitoring::HTTPOKTEXT;
3830- out << CurrentExceptionMessage ();
3830+ out << EncodeHtmlPcdata ( CurrentExceptionMessage () );
38313831 } else {
38323832 WWW_HTML (out) {
38333833 out << " <h2>Error</h2><pre>"
3834- << CurrentExceptionMessage ()
3834+ << EncodeHtmlPcdata ( CurrentExceptionMessage () )
38353835 << Endl;
38363836 }
38373837 }
You can’t perform that action at this time.
0 commit comments