Using version 1.2,
I do:
$snoopy->_expandlinks($links, http://domain.com);
and I got:
http:/domain.com/links //notice missing slash
But:
$snoopy->_expandlinks($links, http://www.domain.com); //added
www
works fine.
I think the regex should be:
function _expandlinks($links,$URI)
{
preg_match("/^[^\?]+/",$URI,$match);
THIS: $match = preg_replace("|/[^\/\.]*\.[^\/
\.]+$|","",$match[0]);
INSTEAD of :
$match = preg_replace("|/[^\/\.]+\.[^\/\.]+$|","",$match[0]);
I replace the + before the . with * and it seems to be working for me.
Nobody/Anonymous
None
None
Public
|
Date: 2006-06-05 16:04:17 PDT Logged In: NO |
|
Date: 2005-03-21 08:02:41 PST Logged In: YES |