[ewiki] Bug fix in ewiki_link_regex_callback()

        I don't seem to be getting CVS again, I'll dig into it more
tomorrow, but I found a bug that prevents proper rendering of links to pages
that have the same name as an action.  In a case-sensitive wiki the effects
are significant as the actions are all lowercase and the code converts it as
such.  

        The problem is that strtok() returns the remainder of the string as
a token even if the delimiter is not present.  The code fixes this by
checking that there is a second token in the string before passing the if.
For action links the second token would have been parsed out anyway, for
other links this is just a slight slowdown.

   #-- action:WikiLinks
   elseif (($ewiki_plugins["action"][$a=strtolower(strtok($href,
":"))])&&($page=strtok("\000"))) {
      $type = array($a, "action", "wikipage");
      $str = '<a href="' . ewiki_script($a, $page) . '">' . $title . '</a>';
   }




Other related posts: