freebsd-ports/deskutils/shutter/files/patch-CVE-2015-0854
Nicola Vitale 98e91c751a - Fix runtime error:
Global symbol "@args" requires explicit package name at /usr/local/share/shutter/resources/modules/Shutter/App/HelperFunctions.pm line 56.
Global symbol "@args" requires explicit package name at /usr/local/share/shutter/resources/modules/Shutter/App/HelperFunctions.pm line 57.
Compilation failed in require at /usr/local/bin/shutter line 148.

See also: See also: https://bugs.launchpad.net/shutter/+bug/1495163/comments/2

- Bump PORTREVISION

Reviewed by:	feld
MFH:	2015Q3
2015-10-01 17:07:48 +00:00

12 lines
481 B
Text

--- share/shutter/resources/modules/Shutter/App/HelperFunctions.pm.orig 2015-09-17 16:09:58 UTC
+++ share/shutter/resources/modules/Shutter/App/HelperFunctions.pm
@@ -53,7 +53,8 @@ sub new {
sub xdg_open {
my ( $self, $dialog, $link, $user_data ) = @_;
- system("xdg-open $link");
+ my @args = ("xdg-open", "$link");
+ system(@args);
if($?){
my $response = $self->{_dialogs}->dlg_error_message(
sprintf( $self->{_d}->get("Error while executing %s."), "'xdg-open'"),