MMB-pasting url into page treated wrong

David Faure dfaure at trolltech.com
Fri Apr 11 13:29:32 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 11 April 2003 14:26, Oswald Buddenhagen wrote:
> moin,
> 
> open any http:// location, put a file:/ url into PRIMARY and MMB-paste
> it into the html render area. you'll get a security warning. the problem
> seems to be, that the MMB-pasting is treated like a link inside the page
> instead of an url entered in the location bar.

Pascal Letourneau sent me this patch to fix this bug.
(I'd like Dirk to comment on the referrer stuff though.)

Index: khtml_part.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/khtml_part.cpp,v
retrieving revision 1.837
diff -u -3 -p -r1.837 khtml_part.cpp
- --- khtml_part.cpp      8 Apr 2003 17:11:26 -0000       1.837
+++ khtml_part.cpp      8 Apr 2003 19:20:10 -0000
@@ -4988,10 +4988,7 @@ void KHTMLPart::khtmlMouseReleaseEvent(
            || uriType == KURIFilterData::NET_PROTOCOL )
       {
         KURL u = m_filterData.uri();
- -        QString savedReferrer = d->m_referrer;
- -        d->m_referrer = QString::null; // Disable referrer.
- -        urlSelected(u.url(), 0,0, "_top");
- -        d->m_referrer = savedReferrer; // Restore original referrer.
+        emit d->m_extension->openURLRequest( u.url() );
       }
     }
   }

- -- 
David FAURE, faure at kde.org, sponsored by TrollTech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
How to write a Makefile.am for KDE/Qt code:
http://developer.kde.org/documentation/other/makefile_am_howto.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+lrUs72KcVAmwbhARAu2CAJ9rgMG9a6TcvmGYEGC1r5kx/nKR7wCfTMvt
I/xNRLOMGIr1Mcl7d2PDZN0=
=Qmcr
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list