ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/background
(Generate patch)

Comparing rxvt-unicode/src/perl/background (file contents):
Revision 1.105 by root, Fri Apr 22 17:02:39 2022 UTC vs.
Revision 1.106 by root, Tue Nov 29 04:44:27 2022 UTC

1452# helper function, quote string as perl without allowing 1452# helper function, quote string as perl without allowing
1453# any code execution or other shenanigans. does not 1453# any code execution or other shenanigans. does not
1454# support binary NULs in string. 1454# support binary NULs in string.
1455sub q0 { 1455sub q0 {
1456 (my $str = shift) =~ s/\x00//g; # make sure there really aren't any embedded NULs 1456 (my $str = shift) =~ s/\x00//g; # make sure there really aren't any embedded NULs
1457 "q\x00$str\x00" 1457 "q\x00\Q$str\E\x00"
1458} 1458}
1459 1459
1460sub old_bg_expr { 1460sub old_bg_expr {
1461 my ($self) = @_; 1461 my ($self) = @_;
1462 1462

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines