Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37495725
en ru br
ALT Linux repositórios
S:4.1.1-alt2
5.0: 3.6.1.cvs5-alt1.2
4.1: 3.6.1.cvs5-alt0.M41.2
4.0: 3.6.1.cvs5-alt0.M40.1

Outros repositórios
Upstream:3.3.1

Group :: Rede/E-Mail
RPM: claws-mail

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: Fix-crash-in-litehtml_viewer-when-base-tag-has-no-hr.patch
Download


From 8445c4b04e22a13617f12354cc1f47971aea819b Mon Sep 17 00:00:00 2001
From: Andrej Kacian <ticho@claws-mail.org>
Date: Tue, 6 Aug 2019 10:46:01 +0200
Subject: [PATCH] Fix crash in litehtml_viewer when <base> tag has no href
---
 src/plugins/litehtml_viewer/lh_widget.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp
index 903c49676..ece90b532 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -139,7 +139,11 @@ void lh_widget::set_base_url(const litehtml::tchar_t* base_url)
 {
 	debug_print("lh_widget set_base_url '%s'\n",
 			(base_url ? base_url : "(null)"));
-	m_base_url = base_url;
+	if (base_url)
+		m_base_url = base_url;
+	else
+		m_base_url.clear();
+
 	return;
 }
 
-- 
2.21.0
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009