mherger;664202 Wrote:
> Indeed...
>
> >
Code:
--------------------
> > Index: Jive.pm
> ===================================================================
> --- Jive.pm (revision 33606)
> +++ Jive.pm (working copy)
> @@ -3034,14 +3034,14 @@
> my $clone = Storable::dclone($item);
>
> if ( $clone->{stringToken} ) {
> - if ( $clone->{stringToken} eq uc( $clone->{stringToken} ) ) {
> + if ( $clone->{stringToken} eq uc( $clone->{stringToken} ) &&
Slim::Utils::Strings::stringExists( $clone->{stringToken} ) ) {
> $clone->{text} = $client->string( delete
$clone->{stringToken} );
> }
> else {
> $clone->{text} = delete $clone->{stringToken};
> }
> }
> - elsif ( $clone->{text} && $clone->{text} eq uc( $clone->{text} ) ) {
> + elsif ( $clone->{text} && $clone->{text} eq uc( $clone->{text} ) &&
Slim::Utils::Strings::stringExists( $clone->{text} ) ) {
> $clone->{text} = $client->string( $clone->{text} );
> }
>
>
--------------------
> >
>
> Would this silence the backtrace?
I suspect it would - could also just use S:U:Strings::getString too?
Still a problem if real text clashes with tokens, but I supect this
does not occur.
--
Triode
------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=90954
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta