Re: [dev][project] soap - a simple xdg-open replacement

From: 7heo <7heo_AT_mail.com>
Date: Sun, 04 May 2014 14:57:06 +0200

open "; rm -rf /; .jpg" would be translated as `feh '; rm -rf /; .jpg'`
which would open the `; .jpg` in the `; rm -rf ` directory. I'm not sure
I see the problem here.


On 5/4/2014 12:52 PM, Chris Down wrote:
> FRIGN writes:
>> A configuration can look like this:
>>
>> { "\.mp3", "st -e mplayer %s" },
>> { "\.(jpg|png|tiff)$", "feh %s" },
>> { "\.gif", "wget -O /tmp/tmp.gif %s && gifview -a /tmp/tmp.gif" },
>> { "^(http://|https://)?(www\.)?(youtube.com/watch\?|youtu\.be/)", "youtube-viewer %s" }
>
> What happens if you unwittingly open "; rm -rf /; .jpg"? I'm not sure
> system() is really a good idea here.
>
Received on Sun May 04 2014 - 14:57:06 CEST

This archive was generated by hypermail 2.3.0 : Sun May 04 2014 - 15:00:07 CEST