Package: libfinance-quote-perl
Version: 1.08-1
Severity: important
Tags: patch

When Gnucash calls for a quote that uses Trustnet.pm as the source there
is a problem if the name of the fund contains an '&' character.  From
Gnucash it is passed through as '&' which causes Trustnet.pm to use
the wrong URL.  (This could be argued as a gnucash bug, but it is good
to make libfinance-quote-perl more robust anyway).

The attached patch below works for version 1.10 of Finance::Quote which
is newer than the one currently in Debian (see bug #338777).

--- Trustnet.pm.orig
+++ Trustnet.pm
16:26:13.000000000 +0000
@@ -84,6 +84,7 @@
        $unittype = "acc" if ($suffix =~ /\(ACC\)/i);
       }
       $trusto =~ s/\s+$//;
+      $trusto =~ s/&/&/g;
       $encoded = $trusto;
       $encoded =~ s/&/%26/g;
       $url = "$TRUSTNET_URL$unittype&txtS=$encoded";


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to