-const char filters_rcs[] = "$Id: filters.c,v 1.63 2006/08/31 10:11:28 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.65 2006/09/21 12:54:43 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
*
* Revisions :
* $Log: filters.c,v $
+ * Revision 1.65 2006/09/21 12:54:43 fabiankeil
+ * Fix +redirect{}. Didn't work with -fast-redirects.
+ *
+ * Revision 1.64 2006/08/31 10:55:49 fabiankeil
+ * Block requests for untrusted URLs with status
+ * code 403 instead of 200.
+ *
* Revision 1.63 2006/08/31 10:11:28 fabiankeil
* Don't free p which is still in use and will be later
* freed by free_map(). Don't claim the referrer is unknown
if (((csp->action->flags & ACTION_IMAGE_BLOCKER) != 0)
&& is_imageurl(csp))
{
- char *p;
+ char *p;
/* determine HOW images should be blocked */
p = csp->action->string[ACTION_STRING_IMAGE_BLOCKER];
{
q = csp->action->string[ACTION_STRING_REDIRECT];
}
- else
+ else if ((csp->action->flags & ACTION_FAST_REDIRECTS))
{
redirect_mode = csp->action->string[ACTION_STRING_FAST_REDIRECTS];
if (0 == strcmpic(redirect_mode, "check-decoded-url"))
q = p++;
}
}
+ else
+ {
+ /* All redirection actions are disabled */
+ return NULL;
+ }
/*
* if there was any, generate and return a HTTP redirect
*/