Author: knguyen
Date: Thu Oct  4 10:27:24 2007
New Revision: 18746

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18746&repname=
=3Djahia
Log:
CGBR-5: detect infinite loop situations when displaying the PageLinker in F=
ckEditor.

Modified:
    branches/JAHIA-4-1-BRANCH/src/views/jsp/jahia/htmleditors/fckeditor/edi=
tor/plugins/JahiaLinker/dtree.js

Modified: branches/JAHIA-4-1-BRANCH/src/views/jsp/jahia/htmleditors/fckedit=
or/editor/plugins/JahiaLinker/dtree.js
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-4-1-BR=
ANCH/src/views/jsp/jahia/htmleditors/fckeditor/editor/plugins/JahiaLinker/d=
tree.js&rev=3D18746&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-4-1-BRANCH/src/views/jsp/jahia/htmleditors/fckeditor/edi=
tor/plugins/JahiaLinker/dtree.js (original)
+++ branches/JAHIA-4-1-BRANCH/src/views/jsp/jahia/htmleditors/fckeditor/edi=
tor/plugins/JahiaLinker/dtree.js Thu Oct  4 10:27:24 2007
@@ -197,7 +197,10 @@
   for (n; n<this.aNodes.length; n++) {
 =

     if (this.aNodes[n].pid =3D=3D pNode.id) {
-
+      if ( this.aNodes[n].id =3D=3D pNode.pid ){
+        // infinite loop situation here!
+        continue;
+      }  =

       var cn =3D this.aNodes[n];
 =

       cn._p =3D pNode;

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to