Ticket #2509: 2509.patch
File 2509.patch, 3.6 KB (added by , 16 years ago) |
---|
-
FCKeditorParser.body.php
486 486 $this->fck_mw_strtr_span[$l] = substr($this->fck_mw_strtr_span[$l], 30, -7); 487 487 } 488 488 } 489 $parserOutput->setText(strtr($parserOutput->getText(), $this->fck_mw_strtr_span)); 489 $text = strtr($parserOutput->getText(), $this->fck_mw_strtr_span); 490 $parserOutput->setText(strtr($text, $this->fck_mw_strtr_span)); 490 491 } 491 492 492 493 if (!empty($this->fck_matches)) { -
mw12/FCKeditorParser_OldPP.body.php
487 487 $this->fck_mw_strtr_span[$l] = substr($this->fck_mw_strtr_span[$l], 30, -7); 488 488 } 489 489 } 490 $parserOutput->setText(strtr($parserOutput->getText(), $this->fck_mw_strtr_span)); 490 $text = strtr($parserOutput->getText(), $this->fck_mw_strtr_span); 491 $parserOutput->setText(strtr($text, $this->fck_mw_strtr_span)); 491 492 } 492 493 if (!empty($this->fck_matches)) { 493 494 $text = $parserOutput->getText() ; -
plugins/mediawiki/dialogs/link.html
69 69 if ( sHRef == null ) 70 70 sHRef = oLink.getAttribute( 'href' , 2 ) || '' ; 71 71 72 sHRef = FCKConfig.ProtectedSource.Revert(sHRef, 0); //#2509 72 73 if (sHRef.toLowerCase().StartsWith( 'rtenotitle' ) ) 73 74 { 74 75 sHRef = sHRef.substring(10); … … 186 187 function Ok() 187 188 { 188 189 var sUri = GetE('txtUrl').value ; 190 sUri = FCKConfig.ProtectedSource.Protect(sUri); //#2509 189 191 var realUri = sUri; 190 192 if ( bLinkEqualsName ) { 191 193 sUri = 'RTENOTITLE'+ sUri; -
plugins/mediawiki/dialogs/template.html
99 99 if ( !oTemplateSpan ) return ; 100 100 101 101 var inputText = FCKTools.HTMLDecode(oTemplateSpan.innerHTML); 102 inputText = FCKConfig.ProtectedSource.Revert(inputText, 0); //#2509 102 103 if (inputText.length>0 && inputText.indexOf('{{#')<0 && inputText.indexOf('{{:')<0 ) 103 104 { 104 105 var templateName = inputText.substring(2,inputText.indexOf('fckLR')); … … 128 129 oTemplateSpan.className = 'fck_mw_template' ; 129 130 } 130 131 131 var templateData = FCKTools.HTMLEncode(GetE('xTemplateRaw').value.Trim().replace(/(\r\n|\n)/g, 'fckLR')).replace( /"/g, '"' ) ; 132 var protectedValue = FCKConfig.ProtectedSource.Protect(GetE('xTemplateRaw').value); 133 var templateData = FCKTools.HTMLEncode(protectedValue.toString().Trim().replace(/(\r\n|\n)/g, 'fckLR')).replace( /"/g, '"' ) ; 132 134 133 135 if ( !( /^{{[\s\S]+}}$/.test( templateData ) ) ) 134 136 { -
plugins/mediawiki/fckplugin.js
370 370 if (href.toLowerCase().StartsWith( 'rtenotitle' )) 371 371 { 372 372 href = href.substring(10); 373 if ( htmlNode.innerHTML == href) pipeline = false;373 if ( FCKConfig.ProtectedSource.Revert(htmlNode.innerHTML, 0) == FCKConfig.ProtectedSource.Revert(href, 0) ) pipeline = false; 374 374 } 375 375 if (href.toLowerCase().StartsWith( 'rtecolon' )) //change 'rtecolon=' => ':' in links 376 376 {