]> source.dussan.org Git - rspamd.git/commitdiff
Fix url parsing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Feb 2015 12:51:46 +0000 (12:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Feb 2015 12:52:00 +0000 (12:52 +0000)
src/libserver/url.c

index 2883f802735e061886616693b5a546142fe95c40..1f1efae37ff31282cc60c70d934c86417e87ade6 100644 (file)
@@ -1294,6 +1294,10 @@ set:
                u->port = pt;
                ret = 0;
                break;
+       case parse_suffix_slash:
+               /* Url ends with '/' */
+               ret = 0;
+               break;
        case parse_path:
                if (p - c > 0) {
                        SET_U (u, UF_PATH);