summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/tags.py3
1 files changed, 3 insertions, 0 deletions
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: