Peter Serwylo 3df03bbb1e Fix #250. Fix #251. Normalize URLs before saving, and disallow invalid URLs.
Removes trailing slashes from URLs, replaces multiple consecutive forward
slashes in the path with a single slash. Canonicalizes the URL.

If the URL is invalid, display a message to the user and don't let it get
added.

NOTE: This does *not* normalize existing URLs in the database.
2015-05-10 23:22:35 +10:00
..
2015-03-23 16:43:38 +01:00
2015-04-21 17:17:23 +02:00
2015-03-23 16:43:38 +01:00
2015-04-21 17:18:03 +02:00
2015-04-21 17:18:03 +02:00
2015-03-23 16:43:38 +01:00
2015-03-23 16:43:38 +01:00
2015-04-21 17:17:23 +02:00
2015-03-23 16:43:38 +01:00
2015-03-23 16:43:38 +01:00
2015-04-21 17:18:03 +02:00
2015-04-21 17:18:03 +02:00
2015-03-23 16:43:38 +01:00
2015-03-23 16:43:38 +01:00
2015-03-08 20:34:58 +01:00
2015-03-23 16:43:38 +01:00
2015-04-21 17:18:03 +02:00
2015-03-23 16:43:38 +01:00
2015-03-23 16:43:38 +01:00
2015-04-21 17:17:23 +02:00
2015-04-21 17:18:03 +02:00
2015-04-14 20:18:41 +01:00
2015-04-21 17:17:23 +02:00
2015-04-21 17:18:03 +02:00
2015-03-23 16:43:38 +01:00
2015-04-21 17:17:23 +02:00
2015-04-21 17:18:03 +02:00
2015-04-21 17:17:23 +02:00
2015-03-23 16:43:38 +01:00
2015-04-21 16:10:00 +01:00
2015-04-21 17:18:03 +02:00
2015-04-21 17:18:03 +02:00
2015-03-23 16:43:38 +01:00
2015-03-23 16:43:38 +01:00
2015-03-23 16:43:38 +01:00
2015-04-21 17:17:23 +02:00
2015-04-14 23:32:40 +02:00