changeset 1662:53307b7407e1

Fix referer URL for zero-delay redirections with META refresh
author Jorge Arellano Cid <jcid@dillo.org>
date Fri, 23 Apr 2010 12:21:07 -0400
parents 0c5d982c92a0
children 1a88fc9331c8
files src/nav.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/nav.c	Fri Apr 23 12:15:55 2010 -0400
+++ b/src/nav.c	Fri Apr 23 12:21:07 2010 -0400
@@ -405,11 +405,12 @@
 static void Nav_redirection0_callback(void *data)
 {
    BrowserWindow *bw = (BrowserWindow *)data;
+   const DilloUrl *referer_url = a_History_get_url(NAV_TOP_UIDX(bw));
    _MSG(">>>> Nav_redirection0_callback <<<<\n");
 
    if (bw->meta_refresh_status == 2) {
       Nav_stack_move_ptr(bw, -1);
-      a_Nav_push(bw, bw->meta_refresh_url,a_History_get_url(NAV_TOP_UIDX(bw)));
+      a_Nav_push(bw, bw->meta_refresh_url, referer_url);
    }
    a_Url_free(bw->meta_refresh_url);
    bw->meta_refresh_url = NULL;