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:
parent
735ee3c3f4
commit
87052fc3c4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159071
@ -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
|
||||
|
19
x11/kdelibs3/files/patch-kioslave_http-http.cc
Normal file
19
x11/kdelibs3/files/patch-kioslave_http-http.cc
Normal 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;
|
||||
|
@ -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
|
||||
|
19
x11/kdelibs4/files/patch-kioslave_http-http.cc
Normal file
19
x11/kdelibs4/files/patch-kioslave_http-http.cc
Normal 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;
|
||||
|
Loading…
Reference in New Issue
Block a user