<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Few bug fixed in last release</title>
        <description> Hello,

Thanks for the software, very easy to use to to customize. Fits my needs perfectly !!!

I came across few bugs that I had to fix here is the list:


1- Url port not taken into account
-----------------------------------
--In spiderfunc.php:
-Function remove_file_from_url() does not take into account port number in url..
We should have when $url_parts['port'] is not empty:
$url_parts['scheme'].&amp;quot;://&amp;quot;.$url_parts['host'].&amp;quot;:&amp;quot;.$url_parts['port'].$path;
-Same thing in url_purify().
We should have when $url_parts['port'] is not empty:
$url_parts['scheme'].&amp;quot;://&amp;quot;.$url_parts['host'].&amp;quot;:&amp;quot;.$url_parts['port'].$urlpath.$query;

2- Title keywords not trimed
----------------------------
In spiderfunc.php: function clean_file
If you have this:
&amp;lt;title&amp;gt;
MyTitle 
&amp;lt;/title&amp;gt;
Then in the keywords table you have that &amp;quot;\nMytitle&amp;quot; and as a result this word is never found.
Fix is &amp;quot;$title = trim($regs[1]);&amp;quot;, line 594

3- Not well balanced comment  -&amp;gt; rest of file ignored:
----------------------------------------------------
In spiderfunc.php: function clean_file

Example you have that:
&amp;lt;!-- coment --&amp;gt; 
&amp;lt;title&amp;gt;&amp;lt;title--&amp;gt;
&amp;lt;!-- comment --&amp;gt; 

Fix is just to start searching the ending comment tag after the opening comment tag:

$first = strpos($file, &amp;quot;&amp;lt;!--&amp;quot;);
$count = 0;
while(!($first === FALSE) &amp;amp;&amp;amp; $count &amp;lt; 200) {
	$count ++;
	$next = strpos($file, &amp;quot;--&amp;gt;&amp;quot;, $first); // Fix is here
		$file = str_replace(substr($file, $first, $next - $first +3), &amp;quot; &amp;quot;, $file);
	$first = strpos($file, &amp;quot;&amp;lt;!--&amp;quot;);
}

I guess same thing should be done for &amp;quot;&amp;lt;script&amp;quot;.</description>
        <link>http://www.sphider.eu/forum/read.php?3,13,13#msg-13</link>
        <lastBuildDate>Wed, 19 Jun 2013 03:07:48 +0300</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,13,840#msg-840</guid>
            <title>Re: Few bug fixed in last release</title>
            <link>http://www.sphider.eu/forum/read.php?3,13,840#msg-840</link>
            <description><![CDATA[ You can see under a large search engine, with certain key words, that Sphider fits needs of a lot of people around the world. I am among them. <br />
<br />
So I/we hope that it goes on improving and updating. <br />
<br />
That is why this is the latest release, not the last one.<br />
<br />
Best regards.]]></description>
            <dc:creator>rec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sun, 01 Jul 2007 23:50:21 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,13,838#msg-838</guid>
            <title>Re: Few bug fixed in last release</title>
            <link>http://www.sphider.eu/forum/read.php?3,13,838#msg-838</link>
            <description><![CDATA[ Olivier<br />
<br />
You are out for a while.]]></description>
            <dc:creator>rec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sun, 01 Jul 2007 20:29:14 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,13,173#msg-173</guid>
            <title>Re: Few bug fixed in last release</title>
            <link>http://www.sphider.eu/forum/read.php?3,13,173#msg-173</link>
            <description><![CDATA[ Bug on site browsing pages :<br />
<br />
replace :<br />
<br />
$links_to_next =$per_page;<br />
$firstpage = $start - $links_to_next;<br />
if ($firstpage &lt; 1) $firstpage = 1;<br />
$lastpage = $start + $links_to_next;<br />
if ($lastpage &gt; $pages) $lastpage = $pages;<br />
<br />
By :<br />
<br />
$firstpage = 1;<br />
$lastpage = floor($numOfPages/$per_page);<br />
$reminder = $numOfPages%$per_page;<br />
if ($reminder  &gt; 0){<br />
	$lastpage += 1;<br />
}<br />
<br />
This fix let see all pages links and fix a bug on setting urls by page]]></description>
            <dc:creator>skipou</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 06 Apr 2007 12:18:02 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,13,138#msg-138</guid>
            <title>Re: Few bug fixed in last release</title>
            <link>http://www.sphider.eu/forum/read.php?3,13,138#msg-138</link>
            <description><![CDATA[ I would like to submit a small bug fixed.<br />
<br />
Concerning template use.<br />
<br />
the &quot;standard&quot; string is hard coded to the css link in header.html of any template....<br />
<br />
I changed it to &lt;?php $template?&gt; and now my template &quot;test_template&quot; refers to the good folder of my css instead of &quot;standard&quot; folder<br />
<br />
Sorry for my english i'm french :p<br />
<br />
Best regards,]]></description>
            <dc:creator>skipou</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 04 Apr 2007 12:46:55 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,13,13#msg-13</guid>
            <title>Few bug fixed in last release</title>
            <link>http://www.sphider.eu/forum/read.php?3,13,13#msg-13</link>
            <description><![CDATA[ Hello,<br />
<br />
Thanks for the software, very easy to use to to customize. Fits my needs perfectly !!!<br />
<br />
I came across few bugs that I had to fix here is the list:<br />
<br />
<br />
1- Url port not taken into account<br />
-----------------------------------<br />
--In spiderfunc.php:<br />
-Function remove_file_from_url() does not take into account port number in url..<br />
We should have when $url_parts['port'] is not empty:<br />
$url_parts['scheme'].&quot;://&quot;.$url_parts['host'].&quot;:&quot;.$url_parts['port'].$path;<br />
-Same thing in url_purify().<br />
We should have when $url_parts['port'] is not empty:<br />
$url_parts['scheme'].&quot;://&quot;.$url_parts['host'].&quot;:&quot;.$url_parts['port'].$urlpath.$query;<br />
<br />
2- Title keywords not trimed<br />
----------------------------<br />
In spiderfunc.php: function clean_file<br />
If you have this:<br />
&lt;title&gt;<br />
MyTitle <br />
&lt;/title&gt;<br />
Then in the keywords table you have that &quot;\nMytitle&quot; and as a result this word is never found.<br />
Fix is &quot;$title = trim($regs[1]);&quot;, line 594<br />
<br />
3- Not well balanced comment  -&gt; rest of file ignored:<br />
----------------------------------------------------<br />
In spiderfunc.php: function clean_file<br />
<br />
Example you have that:<br />
&lt;!-- coment --&gt; <br />
&lt;title&gt;&lt;title--&gt;<br />
&lt;!-- comment --&gt; <br />
<br />
Fix is just to start searching the ending comment tag after the opening comment tag:<br />
<br />
$first = strpos($file, &quot;&lt;!--&quot;);<br />
$count = 0;<br />
while(!($first === FALSE) &amp;&amp; $count &lt; 200) {<br />
	$count ++;<br />
	$next = strpos($file, &quot;--&gt;&quot;, $first); // Fix is here<br />
		$file = str_replace(substr($file, $first, $next - $first +3), &quot; &quot;, $file);<br />
	$first = strpos($file, &quot;&lt;!--&quot;);<br />
}<br />
<br />
I guess same thing should be done for &quot;&lt;script&quot;.]]></description>
            <dc:creator>Olivier</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 14 Mar 2007 14:39:04 +0200</pubDate>
        </item>
    </channel>
</rss>
