title: Combres not fixing relative URLs despite the filter?
body: <p><strong>UPDATE</strong> : Here is an example of the CSS I think is having a problem:</p>
  
  <pre><code>.ui-widget-content { border: 1px solid #aaaaaa/*{borderColorContent}*/; background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; color: #222222/*{fcContent}*/; }
  </code></pre>
  
  <p><strong>UPDATE</strong> - Created a <a href="http://combres.codeplex.com/workitem/7663" rel="nofollow noreferrer">workitem</a> in issue tracker for combres on codeplex.</p>
  
  <p><strong>UPDATE</strong> : I looked at the logs and I found what is going on - </p>
  
  <pre><code>2011-10-24 16:32:20,490 [15] WARN  Combres.Filters.FixUrlsInCssFilter - Cannot fix url url(images/ui-icons_454545_256x240.png)
  System.ArgumentOutOfRangeException: Length cannot be less than zero.
  Parameter name: length
     at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
     at System.String.Substring(Int32 startIndex, Int32 length)
     at Combres.Filters.FixUrlsInCssFilter.FixUrl(Resource resource, Match match)
  </code></pre>
  
  <p>So, can I get the source code and look at it or do I need to maybe put it on the combres issue tracker ?</p>
  
  <p>I am using the filter - </p>
  
  <pre><code> &lt;filter type="Combres.Filters.FixUrlsInCssFilter, Combres" /&gt;
  </code></pre>
  
  <p>which is supposed to fix the relative urls issue mentioned <a href="http://www.codeproject.com/KB/aspnet/combres2.aspx?fid=1566653&amp;df=90&amp;mpp=10&amp;noise=3&amp;prof=True&amp;sort=Position&amp;view=Quick&amp;fr=11" rel="nofollow noreferrer">here</a>. But the urls (css background images) are still using the wrong path and do something like </p>
  
  <p><code>http://somedomain.com/combres.axd/pics/pic.png</code></p>
  
  <p>instead of using</p>
  
  <p><code>http://somedomain.com/pics/pic.png</code></p>
  
  <p>I also tried applying explicitly using -</p>
  
  <pre><code>&lt;filter type="Combres.Filters.FixUrlsInCssFilter, Combres" acceptedResourceSets="myCss"  /&gt;
  </code></pre>
  
  <p>Can anyone give my any suggestions? I found something <a href="https://stackoverflow.com/questions/4817893/combres-and-dotlesscssfilterr">similar</a>, but its solution does not work for me.</p>
  
  <p>UPDATE : Here's my combres.xml just in case - </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;!--
    This file contains basic settings needed for most web apps.
    For full Combres settings (with explanation), refer to the sample definition file: combres_full_with_annotation.xml
    Also, refer to Combres' documentation: http://combres.codeplex.com/documentation  
  --&gt;
  &lt;combres xmlns='urn:combres'&gt;
    &lt;filters&gt;
      &lt;filter type="Combres.Filters.FixUrlsInCssFilter, Combres" acceptedResourceSets="LogCreateCss"  /&gt;
      &lt;filter type="Combres.Filters.DotLessCssFilter, Combres"  acceptedResourceSets="LogCreateCss"  /&gt;
    &lt;/filters&gt;
    &lt;cssMinifiers&gt;
      &lt;minifier name="yui" type="Combres.Minifiers.YuiCssMinifier, Combres"&gt;
        &lt;param name="CssCompressionType" type="string" value="StockYuiCompressor" /&gt;
        &lt;param name="ColumnWidth" type="int" value="-1" /&gt;
      &lt;/minifier&gt;
    &lt;/cssMinifiers&gt;
    &lt;jsMinifiers&gt;
      &lt;minifier name="msajax" type="Combres.Minifiers.MSAjaxJSMinifier, Combres" binderType="Combres.Binders.SimpleObjectBinder, Combres"&gt;
        &lt;param name="CollapseToLiteral" type="bool" value="true" /&gt;
        &lt;param name="EvalsAreSafe" type="bool" value="true" /&gt;
        &lt;param name="MacSafariQuirks" type="bool" value="true" /&gt;
        &lt;param name="CatchAsLocal" type="bool" value="true" /&gt;
        &lt;param name="LocalRenaming" type="string" value="CrunchAll" /&gt;
        &lt;param name="OutputMode" type="string" value="SingleLine" /&gt;
        &lt;param name="RemoveUnneededCode" type="bool" value="true" /&gt;
        &lt;param name="StripDebugStatements" type="bool" value="true" /&gt;
      &lt;/minifier&gt;
      &lt;minifier name="yui" type="Combres.Minifiers.YuiJSMinifier, Combres"&gt;
        &lt;param name="IsVerboseLogging" type="bool" value="false" /&gt;
        &lt;param name="IsObfuscateJavascript" type="bool" value="true" /&gt;
        &lt;param name="PreserveAllSemicolons" type="bool" value="false" /&gt;
        &lt;param name="DisableOptimizations" type="bool" value="true" /&gt;
        &lt;param name="LineBreakPosition" type="int" value="-1" /&gt;
      &lt;/minifier&gt;
    &lt;/jsMinifiers&gt;
    &lt;resourceSets url="~/combres.axd" defaultDuration="30"
                                  defaultVersion="auto"
                                  defaultDebugEnabled="false"
                                  defaultJSMinifierRef="msajax"
                                  defaultCssMinifierRef="yui"&gt;
      &lt;resourceSet name="siteCss" type="css" minifierRef="yui"&gt;
        &lt;resource path="\Content\StyleSheets\reset.css" /&gt;
        &lt;resource path="\Content\StyleSheets\960.css" /&gt;
        &lt;resource path="\Content\StyleSheets\Site960.css" /&gt;
        &lt;resource path="\Content\StyleSheets\Site.css" /&gt;
      &lt;/resourceSet&gt;
      &lt;resourceSet name="siteJs" type="js" minifierRef="msajax"&gt;
        &lt;resource path="\Scripts\jquery-1.5.1.min.js" /&gt;
        &lt;resource path="\Content\Scripts\blockUI.js"  /&gt;
      &lt;/resourceSet&gt;
      &lt;resourceSet name="overviewCss" type="css" minifierRef="yui"&gt;
        &lt;resource path="\Content\Plugins\fancybox\css\jquery.fancybox-1.3.4.css" /&gt;
        &lt;resource path="\Content\StyleSheets\overview_kam.css" /&gt;
      &lt;/resourceSet&gt;
      &lt;resourceSet name="overviewJs" type="js" minifierRef="msajax"&gt;
        &lt;resource path="\Content\Plugins\fancybox\scripts\jquery.fancybox-1.3.4.pack.js" /&gt;
      &lt;/resourceSet&gt;
      &lt;resourceSet name="LogCreateCss" type="css" minifierRef="yui"&gt;
        &lt;resource path="\Content\Plugins\fancybox\css\jquery.fancybox-1.3.4.css" /&gt;
      &lt;/resourceSet&gt;
      &lt;resourceSet name="activityLogCloseCreateJs" type="js" minifierRef="msajax"&gt;
        &lt;resource path="\Content\Plugins\fancybox\scripts\jquery.fancybox-1.3.4.pack.js" /&gt;
        &lt;resource path="\Content\Plugins\fancybox\scripts\jquery.fancybox-1.3.4.js" /&gt;
      &lt;/resourceSet&gt;
      &lt;resourceSet name="LogCreateCss" type="css" minifierRef="yui"&gt;
        &lt;resource path="\Content\StyleSheets\Site.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.all.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery-ui.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.accordion.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.autocomplete.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.button.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.core.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.datepicker.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.dialog.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.menu.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.progressbar.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.resizable.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.selectable.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.slider.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.spinner.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.tabs.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.theme.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\themes\base\jquery.ui.tooltip.css" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\demos\demos.css" /&gt;
      &lt;/resourceSet&gt;
      &lt;resourceSet name="LogCreateJs" type="js" minifierRef="msajax"  &gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\jquery-1.4.3.js" /&gt;
        &lt;resource path="\Content\Scripts\ActivityLog\Create.js" /&gt;
        &lt;resource path="\Content\Plugins\fancybox\scripts\jquery.fancybox-1.3.4.pack.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\external\jquery.mousewheel-3.0.4.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\external\glob.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\external\glob.de-DE.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\external\glob.ja-JP.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\ui\jquery.ui.core.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\ui\jquery.ui.widget.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\ui\jquery.ui.button.js" /&gt;
        &lt;resource path="\Content\Plugins\jquerySpinner\ui\jquery.ui.spinner.js" /&gt;
  
      &lt;/resourceSet&gt;
    &lt;/resourceSets&gt;
  &lt;/combres&gt;
  </code></pre>