From: <no...@so...> - 2007-06-01 16:53:06
|
Update of /cvsroot/ijbswa/current In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv20793 Modified Files: cgisimple.c Log Message: Adjust cgi_show_url_info() to show what forward-override{} would do with the requested URL (instead of showing how the request for the CGI page would be forwarded if it wasn't a CGI request). Index: cgisimple.c =================================================================== RCS file: /cvsroot/ijbswa/current/cgisimple.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- cgisimple.c 21 May 2007 10:50:35 -0000 1.56 +++ cgisimple.c 1 Jun 2007 16:53:05 -0000 1.57 @@ -36,6 +36,12 @@ * * Revisions : * $Log$ + * Revision 1.57 2007/06/01 16:53:05 fabiankeil + * Adjust cgi_show_url_info() to show what forward-override{} + * would do with the requested URL (instead of showing how the + * request for the CGI page would be forwarded if it wasn't a + * CGI request). + * * Revision 1.56 2007/05/21 10:50:35 fabiankeil * - Use strlcpy() instead of strcpy(). * - Stop treating actions files special. Expect a complete file name @@ -1567,6 +1573,19 @@ string_append(&matches, "</table>\n"); /* + * XXX: Kludge to make sure the "Forward settings" section + * shows what forward-override{} would do with the requested URL. + * No one really cares how the CGI request would be forwarded + * if it wasn't intercepted as CGI request in the first place. + * + * From here on the action bitmask will no longer reflect + * the real url (http://config.privoxy.org/show-url-info?url=.*), + * but luckily it's no longer required later on anyway. + */ + free_current_action(csp->action); + url_actions(url_to_query, csp); + + /* * Fill in forwarding settings. * * The possibilities are: @@ -1577,7 +1596,7 @@ * * XXX: Parts of this code could be reused for the * "forwarding-failed" template which currently doesn't - * display the proxy port and an eventuell second forwarder. + * display the proxy port and an eventual second forwarder. */ { const struct forward_spec * fwd = forward_url(url_to_query, csp); |