projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5220c48
)
Fix crash in litehtml_viewer when <base> tag has no href
author
Andrej Kacian
<ticho@claws-mail.org>
Tue, 6 Aug 2019 08:46:01 +0000
(10:46 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Tue, 6 Aug 2019 08:46:01 +0000
(10:46 +0200)
src/plugins/litehtml_viewer/lh_widget.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/litehtml_viewer/lh_widget.cpp
b/src/plugins/litehtml_viewer/lh_widget.cpp
index 903c496763272b8fbc110cd2122241994c3607d2..ece90b53259db002d2197666d7ae47b8fe858b23 100644
(file)
--- 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;
}