summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-01 01:44:08 +0200
committerhut <hut@lavabit.com>2011-10-01 01:44:08 +0200
commit3f053cf2ecda9dee7e987a0d186fff6f5be27bb4 (patch)
treec88dc1345c99605bee1dbbb4178b4ac2119e123f
parent3d378ea876e98122196fc5635c6cf52bce959495 (diff)
downloadranger-3f053cf2ecda9dee7e987a0d186fff6f5be27bb4.tar.gz
container.tags: sanity checks
-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: