sarugaku / shellingham

Tool to Detect Surrounding Shell
ISC License
221 stars 33 forks source link

FIX: prevent ValueError on single quote #13

Closed r4lv closed 5 years ago

r4lv commented 5 years ago

Fixes #12.

As you were already checking if line.strip().split() fails with a ValueError, the easiest was to move the critical shlex.split() part into the try-block, too.

glehmann commented 5 years ago

LGTM :+1: