summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-09-11 07:51:12 +0000
committerDan Armak <danarmak@gentoo.org>2002-09-11 07:51:12 +0000
commite829cc9f9d39b87a95324a0912da9418b53aaf93 (patch)
tree2a5de3fabcc8705c3fb792913cbc6562e8a8d57f /kde-base
parentsame security fix as became 3.0.3a, for kde2 (diff)
downloadgentoo-2-e829cc9f9d39b87a95324a0912da9418b53aaf93.tar.gz
gentoo-2-e829cc9f9d39b87a95324a0912da9418b53aaf93.tar.bz2
gentoo-2-e829cc9f9d39b87a95324a0912da9418b53aaf93.zip
missing patch
Diffstat (limited to 'kde-base')
-rw-r--r--kde-base/kdelibs/files/kdelibs-2.2.2a-crosside.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/kde-base/kdelibs/files/kdelibs-2.2.2a-crosside.diff b/kde-base/kdelibs/files/kdelibs-2.2.2a-crosside.diff
new file mode 100644
index 000000000000..381eb166c6f6
--- /dev/null
+++ b/kde-base/kdelibs/files/kdelibs-2.2.2a-crosside.diff
@@ -0,0 +1,24 @@
+--- khtml/ecma/kjs_html.cpp 2002/01/08 13:42:53 1.108.2.3
++++ khtml/ecma/kjs_html.cpp 2002/09/10 16:31:26 1.108.2.4
+@@ -858,7 +858,6 @@ KJSO KJS::HTMLElement::tryGet(const UStr
+ case ID_FRAME: {
+ DOM::HTMLFrameElement frameElement = element;
+
+- // p == "document" ?
+ if (p == "frameBorder") return getString(frameElement.frameBorder());
+ else if (p == "longDesc") return getString(frameElement.longDesc());
+ else if (p == "marginHeight") return getString(frameElement.marginHeight());
+@@ -873,9 +872,11 @@ KJSO KJS::HTMLElement::tryGet(const UStr
+ break;
+ case ID_IFRAME: {
+ DOM::HTMLIFrameElement iFrame = element;
++ KHTMLPart* part = iFrame.isNull() ? 0 : static_cast<DOM::HTMLIFrameElementImpl*>(iFrame.handle() )->frameDocument()->view()->part();
+ if (p == "align") return getString(iFrame.align());
+- // ### security check ?
+- else if (p == "document") {
++ else if ((iFrame.src().isEmpty() || !part || originCheck(part->url(), Window::retrieveActive()->part()->url()))
++
++ && p == "document") {
+ if ( !iFrame.isNull() )
+ return getDOMNode( static_cast<DOM::HTMLIFrameElementImpl*>(iFrame.handle() )->frameDocument() );
+