This patch optimize the regular expressions for the remote image security. It search now for background images too and have no problems with whitespaces. I tested the following HTML with no problems:
------------------------->8-------------------------
<dl>
<dt>normal image with quote<dt>
<dd><img src="http://nocc.sourceforge.net/img/button.png" /></dd>
<dt>normal image without quote<dt>
<dd><img src=http://nocc.sourceforge.net/img/button.png /></dd>
<dt>normal image with whitespace and quote<dt>
<dd><img src = " http://nocc.sourceforge.net/img/button.png " /></dd>
<dt>normal image with whitespace and without quote<dt>
<dd><img src = http://nocc.sourceforge.net/img/button.png /></dd>
</dl>
<table>
<tr>
<td background="http://nocc.sourceforge.net/img/button.png">background with quote</td>
</tr>
<tr>
<td background=http://nocc.sourceforge.net/img/button.png>background without quote</td>
</tr>
<tr>
<td background = " http://nocc.sourceforge.net/img/button.png ">background with whitespace and quote</td>
</tr>
<tr>
<td background = http://nocc.sourceforge.net/img/button.png >background with whitespace and without quote</td>
</tr>
</table>
<p style="background:url(http://nocc.sourceforge.net/img/button.png)">background-style</p>
<p style=" background : url( http://nocc.sourceforge.net/img/button.png ) ">background-style with whitespace</p>
-------------------------8<-------------------------
Greetings,
Tim
patch file
Logged In: YES
user_id=652377
Originator: YES
File Added: html-test.html
html source for testing
Logged In: YES
user_id=529507
Originator: NO
Fixed in CVS.
It'll be included in next release.
But you can download daily snapshots at :
http://nocc.sourceforge.net/download/
Thanks for the patch.