1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Fix KDE bug 124654.

Obtained from: KDE SVN, Alexander Stepanov <sam@comintel.ru>
This commit is contained in:
Michael Nottebrock 2006-04-07 18:58:24 +00:00
parent 735ee3c3f4
commit 87052fc3c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159071
4 changed files with 40 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View File

@ -0,0 +1,19 @@
--- kioslave/http/http.cc.orig Fri Apr 7 06:17:01 2006
+++ kioslave/http/http.cc Fri Apr 7 06:18:00 2006
@@ -3590,6 +3590,16 @@
error(ERR_ACCESS_DENIED, u.url());
return false;
}
+
+ // preserve #ref: (bug 124654)
+ // if we were at http://host/resource1#ref, we sent a GET for "/resource1"
+ // if we got redirected to http://host/resource2, then we have to re-add
+ // the fragment:
+ if (m_request.url.hasRef() && !u.hasRef() &&
+ (m_request.url.host() == u.host()) &&
+ (m_request.url.protocol() == u.protocol()))
+ u.setRef(m_request.url.ref());
+
m_bRedirect = true;
m_redirectLocation = u;

View File

@ -8,6 +8,7 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View File

@ -0,0 +1,19 @@
--- kioslave/http/http.cc.orig Fri Apr 7 06:17:01 2006
+++ kioslave/http/http.cc Fri Apr 7 06:18:00 2006
@@ -3590,6 +3590,16 @@
error(ERR_ACCESS_DENIED, u.url());
return false;
}
+
+ // preserve #ref: (bug 124654)
+ // if we were at http://host/resource1#ref, we sent a GET for "/resource1"
+ // if we got redirected to http://host/resource2, then we have to re-add
+ // the fragment:
+ if (m_request.url.hasRef() && !u.hasRef() &&
+ (m_request.url.host() == u.host()) &&
+ (m_request.url.protocol() == u.protocol()))
+ u.setRef(m_request.url.ref());
+
m_bRedirect = true;
m_redirectLocation = u;