Commit a43e02d3 authored by Niels De Graef's avatar Niels De Graef Committed by Niels De Graef

gkr: Fix a crash for some Epiphany passwords

The NULL-check in `GkrItem.epiphany_custom()` checked the wrong
variable, making it possible that we were still passing on a NULL string
as a username to `GLib.Markup.escape_text()`

Fixes #225
parent bd23c341
Pipeline #77678 passed with stage
in 8 minutes and 19 seconds
......@@ -376,7 +376,7 @@ private void epiphany_custom(string? display,
info.label = uri;
var username = get_attribute_string(attrs, "username");
if (uri != null)
if (username != null)
info.details = Markup.escape_text(username);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment