[gnome-maps/wip/mlundblad/libsoup3: 9/11] uris: Use GLib.uri_unescape_string()
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/libsoup3: 9/11] uris: Use GLib.uri_unescape_string()
- Date: Sat, 20 Aug 2022 20:47:25 +0000 (UTC)
commit cbdca7d0b646713f87d904cf65253101bae919a4
Author: Marcus Lundblad <ml dfupdate se>
Date: Wed Aug 17 22:10:20 2022 +0200
uris: Use GLib.uri_unescape_string()
Change from libsoup's URI escape functionallity
to using the one from GLib, as that API is removed
in libsoup3.
src/uris.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/uris.js b/src/uris.js
index 5e69af05..82c301f7 100644
--- a/src/uris.js
+++ b/src/uris.js
@@ -22,7 +22,6 @@
import gettext from 'gettext';
import GLib from 'gi://GLib';
-import Soup from 'gi://Soup';
import * as Utils from './utils.js';
@@ -121,7 +120,7 @@ export function parseMapsURI(uri) {
if (param === 'q') {
try {
- return Soup.uri_decode(value);
+ return GLib.uri_unescape_string(value, null);
} catch (error) {
return null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]