Commits

Christian Boos committed 20f4c8e

0.10.4dev: ported r4939 to stable (''2.3 compatibility fix for ticket validity test''). Thanks to John Joseph Bachir for the notice.

Comments (0)

Files changed (1)

trac/ticket/api.py

             return intertrac
         try:
             num = int(target)
-            if 0 < num <= 2 << 30:
+            if 0 < num <= 1L << 31:
                 cursor = formatter.db.cursor()
                 cursor.execute("SELECT summary,status FROM ticket WHERE id=%s",
                                (str(num),))