Branch: Tag:

2016-06-29

2016-06-29 10:06:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Redirects: Improved quoting of redirect headers.

Ensure that the location header is quoted properly.

Fixes [bug 7737 (#7737)].

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.240 2008/05/09 18:26:27 mast Exp $ + // $Id$      #include <roxen.h>   #include <config.h>
989:       url = make_absolute_url (url, id, prestates, variables);    +  url = http_encode_invalids(url); +     HTTP_WERR("Redirect -> "+url);       return http_status( 302, "Redirect to " + url)