Subversion Repositories Applications.papyrus

Rev

Rev 1925 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1925 Rev 2048
Line 1... Line 1...
1
/*
1
/*
2
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
2
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
3
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
4
 *
4
 *
5
 * == BEGIN LICENSE ==
5
 * == BEGIN LICENSE ==
6
 *
6
 *
7
 * Licensed under the terms of any of the following licenses at your
7
 * Licensed under the terms of any of the following licenses at your
8
 * choice:
8
 * choice:
Line 192... Line 192...
192
			{
192
			{
193
			}
193
			}
194
		}
194
		}
Line 195... Line 195...
195
 
195
 
196
		// Try to match the email against the encode protection.
196
		// Try to match the email against the encode protection.
197
		var aMatch = aLinkInfo[2].match( /^location\.href='mailto:'\+(String\.fromCharCode\([\d,]+\))\+'(.*)'$/ ) ;
197
		var aMatch = aLinkInfo[2].match( /^(?:void\()?location\.href='mailto:'\+(String\.fromCharCode\([\d,]+\))\+'(.*)'\)?$/ ) ;
198
		if ( aMatch )
198
		if ( aMatch )
199
		{
199
		{
200
			// The link is encoded
200
			// The link is encoded
201
			oEMailInfo.Address = eval( aMatch[1] ) ;
201
			oEMailInfo.Address = eval( aMatch[1] ) ;
Line 251... Line 251...
251
			if ( body.length > 0 )
251
			if ( body.length > 0 )
252
				aParams.push( 'body=' + encodeURIComponent( body ) ) ;
252
				aParams.push( 'body=' + encodeURIComponent( body ) ) ;
253
			for ( var i = 0 ; i < address.length ; i++ )
253
			for ( var i = 0 ; i < address.length ; i++ )
254
				aAddressCode.push( address.charCodeAt( i ) ) ;
254
				aAddressCode.push( address.charCodeAt( i ) ) ;
Line 255... Line 255...
255
 
255
 
256
			return 'javascript:location.href=\'mailto:\'+String.fromCharCode(' + aAddressCode.join( ',' ) + ')+\'?' + aParams.join( '&' ) + '\'' ;
256
			return 'javascript:void(location.href=\'mailto:\'+String.fromCharCode(' + aAddressCode.join( ',' ) + ')+\'?' + aParams.join( '&' ) + '\')' ;
Line 257... Line 257...
257
	}
257
	}
Line 258... Line 258...
258
 
258