403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/Engineering/V2/plugins/editors/jckeditor/plugins/autofixlink/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/Engineering/V2/plugins/editors/jckeditor/plugins/autofixlink/plugin.js
CKEDITOR.plugins.add('autofixlink',   
{    

     init:function(editor) 
	 {
		//Nothing to do	 
	 },
	  
	afterInit: function (editor) 
	{
            
			var dataProcessor = editor.dataProcessor,
                 htmlFilter = dataProcessor && dataProcessor.htmlFilter;
          
            if (htmlFilter)
			{
                htmlFilter.addRules(
				{
                    
					elements: 
					{
                        a : function (element) 
						{
							
	                       	if (element.attributes._cke_saved_href ) 
							{
								var href = element.attributes._cke_saved_href;
								if(href.indexOf('www.') != -1 && !href.match(/^http/))
								{
									element.attributes._cke_saved_href = 'http://' + href;
								}
							}
							
							return element
                        }
                    }
			    });
            }
			
        }

});

Youez - 2016 - github.com/yon3zu
LinuXploit