[geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/filemanager/connectors/lasso upload.lasso, 1.2, 1.3

Blaine Lang blaine at qs1489.pair.com
Sun Aug 10 12:46:34 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/filemanager/connectors/lasso
In directory qs1489.pair.com:/tmp/cvs-serv4567/editor/filemanager/connectors/lasso

Modified Files:
	upload.lasso 
Log Message:
Upgrade to FCKeditor ver 2.6.3

Index: upload.lasso
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/filemanager/connectors/lasso/upload.lasso,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** upload.lasso	5 May 2008 00:35:25 -0000	1.2
--- upload.lasso	10 Aug 2008 16:46:32 -0000	1.3
***************
*** 75,110 ****
  		-description='Sets the HTML response for the FCKEditor Quick Upload feature.'
  	);
- 		$__html_reply__ = '\
- <script type="text/javascript">
- (function()
- {
- 	var d = document.domain ;
- 
- 	while ( true )
- 	{
- 		// Test if we can access a parent property.
- 		try
- 		{
- 			var test = window.top.opener.document.domain ;
- 			break ;
- 		}
- 		catch( e ) {}
  
! 		// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
! 		d = d.replace( /.*?(?:\\.|$)/, "" ) ;
  
! 		if ( d.length == 0 )
! 			break ;		// It was not able to detect the domain.
  
! 		try
! 		{
! 			document.domain = d ;
! 		}
! 		catch (e)
! 		{
! 			break ;
! 		}
! 	}
! })() ;
  	window.parent.OnUploadCompleted(' + #errorNumber + ',"'
  		+ string_replace(#fileUrl, -find='"', -replace='\\"') + '","'
--- 75,87 ----
  		-description='Sets the HTML response for the FCKEditor Quick Upload feature.'
  	);
  
! 		$__html_reply__ = '<script type="text/javascript">';
  
! 		// Minified version of the document.domain automatic fix script (#1919).
! 		// The original script can be found at _dev/domain_fix_template.js
! 		// Note: in Lasso replace \ with \\
! 		$__html_reply__ = $__html_reply__ + "(function(){var d=document.domain;while (true){try{var A=window.parent.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();";
  
! 		$__html_reply__ = $__html_reply__ + '\
  	window.parent.OnUploadCompleted(' + #errorNumber + ',"'
  		+ string_replace(#fileUrl, -find='"', -replace='\\"') + '","'




More information about the geeklog-cvs mailing list