From kde-commits Sat Jul 18 12:14:18 2009 From: Nikolaj Hald Nielsen Date: Sat, 18 Jul 2009 12:14:18 +0000 To: kde-commits Subject: extragear/multimedia/amarok/src Message-Id: <1247919258.591653.31051.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124791926715536 SVN commit 998725 by nhnielsen: Fix escaped space "%20" being shown at the end of each filter value in the LibriVox service BUG: 190704 M +1 -1 scripts/librivox_service/main.js M +1 -0 services/scriptable/ScriptableServiceQueryMaker.cpp --- trunk/extragear/multimedia/amarok/src/scripts/librivox_service/main.js #998724:998725 @@ -226,7 +226,7 @@ if ( filter != "" ) { - name = filter.replace( "%20", " " ); + name = filter.replace( /%20/g, " " ); } else { --- trunk/extragear/multimedia/amarok/src/services/scriptable/ScriptableServiceQueryMaker.cpp #998724:998725 @@ -447,6 +447,7 @@ if ( value == Meta::valTitle ) { + //I am sure there is a really good reason to add this space, as nothing works if it is removed, but WHY?!? d->filter += filter + ' '; d->filter = d->filter.replace( ' ', "%20" ); }