post-3.3.2-kdelibs-htmlframes2.patch

post-3.3.2-kdelibs-kio.diff
post-3.3.2-kdelibs-kioslave.patch
This commit is contained in:
brad 2005-02-27 07:42:03 +00:00
parent 1ec98e242a
commit 33dab9f5f5
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-khtml_khtml_part_cpp,v 1.4 2005/02/27 07:42:03 brad Exp $
--- khtml/khtml_part.cpp.orig Sun Feb 27 02:32:27 2005
+++ khtml/khtml_part.cpp Sun Feb 27 02:33:45 2005
@@ -4758,13 +4758,16 @@ KHTMLPart *
KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame )
{
#ifdef DEBUG_FINDFRAME
- kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " findFrameParent( " << f << " )" << endl;
+ kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " name = " << name() << " findFrameParent( " << f << " )" << endl;
#endif
// Check access
KHTMLPart* const callingHtmlPart = dynamic_cast<KHTMLPart *>(callingPart);
if (!checkFrameAccess(callingHtmlPart))
return 0;
+
+ if (!childFrame && !parentPart() && (name() == f))
+ return this;
FrameIt it = d->m_frames.find( f );
const FrameIt end = d->m_frames.end();

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-kio_kio_job_cpp,v 1.1 2005/02/27 07:42:03 brad Exp $
--- kio/kio/job.cpp.orig Sun Feb 27 02:34:21 2005
+++ kio/kio/job.cpp Sun Feb 27 02:35:28 2005
@@ -3121,10 +3121,10 @@ void CopyJob::copyNextFile()
f.close();
KSimpleConfig config( path );
config.setDesktopGroup();
- config.writePathEntry( QString::fromLatin1("URL"), (*it).uSource.url() );
- KURL urlName = (*it).uSource;
- urlName.setPass( "" );
- config.writeEntry( QString::fromLatin1("Name"), urlName.url() );
+ KURL url = (*it).uSource;
+ url.setPass( "" );
+ config.writePathEntry( QString::fromLatin1("URL"), url.url() );
+ config.writeEntry( QString::fromLatin1("Name"), url.url() );
config.writeEntry( QString::fromLatin1("Type"), QString::fromLatin1("Link") );
QString protocol = (*it).uSource.protocol();
if ( protocol == QString::fromLatin1("ftp") )

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-kioslave_ftp_ftp_cc,v 1.1 2005/02/27 07:42:03 brad Exp $
--- kioslave/ftp/ftp.cc.orig Sun Feb 27 02:35:57 2005
+++ kioslave/ftp/ftp.cc Sun Feb 27 02:36:44 2005
@@ -751,6 +751,14 @@ bool Ftp::ftpSendCmd( const QCString& cm
{
assert(m_control != NULL); // must have control connection socket
+ if ( cmd.find( '\r' ) != -1 || cmd.find( '\n' ) != -1)
+ {
+ kdWarning(7102) << "Invalid command received (contains CR or LF): "
+ << cmd.data() << endl;
+ error( ERR_UNSUPPORTED_ACTION, m_host );
+ return false;
+ }
+
// Don't print out the password...
bool isPassCmd = (cmd.left(4).lower() == "pass");
if ( !isPassCmd )