Ticket #2149: 2149.patch

File 2149.patch, 1.6 KB (added by fredck, 21 months ago)
  • _whatsnew.html

     
    5151                        nodeTagName object.</li>  
    5252                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1614">#1614</a>] Unified 
    5353                        FCKConfig.FullBasePath with FCKConfig.BasePath.</li> 
     54                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2149">#2149</a>] CSS urls 
     55                        with querystring parameters were not being accepted for CSS values in the configuration 
     56                        file (like EditorAreaCSS).</li> 
    5457        </ul> 
    5558        <p> 
    5659        </p> 
  • editor/_source/internals/fcktools.js

     
    8181        if ( typeof( cssFileOrArrayOrDef ) == 'string' ) 
    8282        { 
    8383                // Test if the passed argument is an URL. 
    84                 if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) ) 
     84                if ( /[\\\/\.][^{}]*$/.test( cssFileOrArrayOrDef ) ) 
    8585                { 
    8686                        // The string may have several URLs separated by comma. 
    8787                        return this.AppendStyleSheet( domDocument, cssFileOrArrayOrDef.split(',') ) ; 
     
    126126                if ( typeof( cssFileOrArrayOrDef ) == 'string' ) 
    127127                { 
    128128                        // Test if the passed argument is an URL. 
    129                         if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) ) 
     129                        if ( /[\\\/\.][^{}]*$/.test( cssFileOrArrayOrDef ) ) 
    130130                        { 
    131131                                // The string may have several URLs separated by comma. 
    132132                                return this.GetStyleHtml( cssFileOrArrayOrDef.split(','), markTemp ) ;