[gnome-disk-utility/gnome-40] Escape hyperlink text in mount point label
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/gnome-40] Escape hyperlink text in mount point label
- Date: Sat, 10 Jul 2021 21:59:27 +0000 (UTC)
commit ab2ab4b71af23485686408618186f22e6d1c7ec5
Author: Kai Lüke <kailueke riseup net>
Date: Mon Jun 28 23:22:09 2021 +0200
Escape hyperlink text in mount point label
Mount points with special characters broke the hyperlink assembling for
the label.
Escape the mount point string when assembling the label hyperlink.
https://gitlab.gnome.org/GNOME/gnome-disk-utility/-/issues/216
src/disks/gduwindow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index 12c3e477..aaaf4341 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -2542,7 +2542,7 @@ update_device_page_for_block (GduWindow *window,
}
else
{
- s = g_strdup_printf ("<a href=\"file://%s\">%s</a>",
+ s = g_markup_printf_escaped ("<a href=\"file://%s\">%s</a>",
mount_points[0], mount_points[0]);
}
/* Translators: Shown as in-use part of 'Contents'. The first %s is the mount point, e.g.
/media/foobar */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]