Hello community, here is the log from the commit of package gnome-maps for openSUSE:Factory checked in at 2019-11-29 15:57:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnome-maps (Old) and /work/SRC/openSUSE:Factory/.gnome-maps.new.26869 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnome-maps" Fri Nov 29 15:57:06 2019 rev:48 rq:750944 version:3.34.2 Changes: -------- --- /work/SRC/openSUSE:Factory/gnome-maps/gnome-maps.changes 2019-10-17 13:00:32.201115622 +0200 +++ /work/SRC/openSUSE:Factory/.gnome-maps.new.26869/gnome-maps.changes 2019-11-29 15:59:15.544895452 +0100 @@ -1,0 +2,6 @@ +Sat Nov 23 18:39:51 UTC 2019 - Bjørn Lie <bjorn....@gmail.com> + +- Update to version 3.34.2: + + Fix encoding of Wikipedia URLs in some cases. + +------------------------------------------------------------------- Old: ---- gnome-maps-3.34.1.tar.xz New: ---- gnome-maps-3.34.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-maps.spec ++++++ --- /var/tmp/diff_new_pack.VcPAAS/_old 2019-11-29 15:59:19.288893916 +0100 +++ /var/tmp/diff_new_pack.VcPAAS/_new 2019-11-29 15:59:19.288893916 +0100 @@ -1,7 +1,7 @@ # # spec file for package gnome-maps # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: gnome-maps -Version: 3.34.1 +Version: 3.34.2 Release: 0 Summary: Maps Application for GNOME License: GPL-2.0-or-later ++++++ gnome-maps-3.34.1.tar.xz -> gnome-maps-3.34.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-maps-3.34.1/src/wikipedia.js new/gnome-maps-3.34.2/src/wikipedia.js --- old/gnome-maps-3.34.1/src/wikipedia.js 2019-10-07 21:04:40.000000000 +0200 +++ new/gnome-maps-3.34.2/src/wikipedia.js 2019-11-23 10:23:36.000000000 +0100 @@ -43,6 +43,11 @@ } function getArticle(wiki) { + return Soup.uri_encode(wiki.replace(/ /g, '_').split(':').splice(1).join(':'), + '\''); +} + +function getHtmlEntityEncodedArticle(wiki) { return GLib.markup_escape_text(wiki.split(':').splice(1).join(':'), -1); } @@ -53,7 +58,7 @@ */ function fetchArticleThumbnail(wiki, size, callback) { let lang = getLanguage(wiki); - let title = getArticle(wiki); + let title = getHtmlEntityEncodedArticle(wiki); let uri = Format.vprintf('https://%s.wikipedia.org/w/api.php', [ lang ]); let msg = Soup.form_request_new_from_hash('GET', uri, { action: 'query', titles: title,