Don't put a space before P in shortlinks
authorMagnus Hagander <magnus@hagander.net>
Mon, 21 Mar 2016 14:16:34 +0000 (15:16 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 21 Mar 2016 14:16:34 +0000 (15:16 +0100)
Sideeffect of some re-indenting, any short URL that had a P
in it would get %20P instead, making it not work. Oops.

hamnadmin/hamnadmin/util/shortlink.py

index 06a719144c6c824c6068f6cc0d6193e5aaa69f49..72ea0c7dda87e783ed979c5ce0d5933c797eebf3 100644 (file)
@@ -3,5 +3,5 @@ urlvalmap = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a',
                         'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
                         'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
                         'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
-                        'I', 'J', 'K', 'L', 'M', 'N', 'O', ' P', 'Q', 'R', 'S',
+                        'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S',
                         'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '_']