[dokuwiki] handling of certain schemes within external link

On Mac OS X 10.4 there is a scheme named 'x-man-page'.  
With the 2005-07-13 version of DokuWiki, these don't show 
up appropriately in external links.

I tried changing line 413 of my inc/parser/handler.php as
follows:

        }elseif ( preg_match('#^([a-z0-9-]+?)://#i',$link[0]) ) {

(just added a '-' to the regular expression) and now the 
'x-man-page' links appear to show up ok.  Is this an 
appropriate way to handle this issue?  Also, in general if
there are custom schemes that don't appear to be handled
by DokuWiki, is modifying this regular expression an
appropriate way to cope (and sufficient)?

Thanks for any help.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: