req.py
brancholdstable
changeset 6747 63bf61e4e130
parent 6321 a8a33679f4dd
child 6750 ef513c03a224
--- a/req.py	Thu Dec 09 18:06:48 2010 +0100
+++ b/req.py	Mon Dec 13 19:46:24 2010 +0100
@@ -142,7 +142,7 @@
 
     def ensure_ro_rql(self, rql):
         """raise an exception if the given rql is not a select query"""
-        first = rql.split(' ', 1)[0].lower()
+        first = rql.split(None, 1)[0].lower()
         if first in ('insert', 'set', 'delete'):
             raise Unauthorized(self._('only select queries are authorized'))