From c328c3fdf7fb3706e48a66572a6f926ba8bdae92 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 23 Jun 2023 18:58:26 +0100 Subject: [PATCH] Fix raw html leaking in an error message --- qrenderdoc/Code/CaptureContext.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qrenderdoc/Code/CaptureContext.cpp b/qrenderdoc/Code/CaptureContext.cpp index b6d2ab952..addd3f360 100644 --- a/qrenderdoc/Code/CaptureContext.cpp +++ b/qrenderdoc/Code/CaptureContext.cpp @@ -168,12 +168,13 @@ CaptureContext::CaptureContext(PersistantConfig &cfg) : m_Config(cfg) } else if(CrashDialog::CaptureTooLarge(m_Config)) { - text += - tr("Your capture is too lage to upload as a crash report so this can't be " - "automatically reported. " - "Please email me at " - "baldurk@baldurk.org with information and I can help investigate."); + text = tr("%1

" + "Your capture is too lage to upload as a crash report so this can't be " + "automatically reported. " + "Please email me at " + "baldurk@baldurk.org with information and I can help investigate.") + .arg(text); } else {