diff options
-rwxr-xr-x | clip | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -38,6 +38,8 @@ def fileno(filelike): @contextlib.contextmanager def secure_open(path, mode='r', *l, **kw): + if os.path.islink(path): + raise SecurityError("The clipboard file can not be a symlink") real_mode = mode if 'w' in real_mode: real_mode = real_mode.replace('w', 'a') |