From 3f053cf2ecda9dee7e987a0d186fff6f5be27bb4 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 1 Oct 2011 01:44:08 +0200 Subject: container.tags: sanity checks --- ranger/container/tags.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ranger/container/tags.py b/ranger/container/tags.py index c2fe3067..24fbd0a5 100644 --- a/ranger/container/tags.py +++ b/ranger/container/tags.py @@ -57,6 +57,9 @@ class Tags(object): tag = others['tag'] else: tag = self.default_tag + tag = str(tag) + if tag not in ALLOWED_KEYS: + return self.sync() for item in items: try: -- cgit 1.4.1-2-gfad0