]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/utils.py
js: Add jquery and jquery tablednd plugins
[patchwork] / apps / patchwork / utils.py
index 1771167ae12f35fb55479c35aa865be496ce2664..f48e7a59a341ada3bc9a1465c809f181dac4cd3a 100644 (file)
@@ -105,6 +105,9 @@ def set_bundle(user, project, action, data, patches, context):
     bundle = None
     if action == 'create':
         bundle_name = data['bundle_name'].strip()
+        if '/' in bundle_name:
+            return ['Bundle names can\'t contain slashes']
+
         if not bundle_name:
             return ['No bundle name was specified']