[racktables-users] Re: Nice to have URL links in the comment field.

  • From: Denis Ovsienko <pilot@xxxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Thu, 31 Jan 2008 13:33:03 +0300

Hello.

> $> diff interface.php.org interface.php
> 663c663,666
> < echo '<div class=commentblock>' . $info['comment'] . '</div>';
> ---
> > $ghd_comment = preg_replace( '/(([[:alpha:]][-+.[:alnum:]]*):\/\/(%
> > [[:digit:]A-Fa-f]{2}|[-_.!~*\';\/?%^\\\\:@&={\|}+$#\(\),\[\]
> > [:alnum:]])+)/se', "'<a href=\"'.rtrim('\\1','.').'\">\\1</a> [<a
> > href=\"'.rtrim('\\1','.').'\" target=\"_blank\">^</a>]'", $info
> > ['comment']);
> > # echo '<div class=commentblock>' . $info['comment'] . '</div>';
> > echo '<div class=commentblock>' . $ghd_comment . '</div>';
> 
> This is an cut and paste from the http://www.mantisbt.org/ project.
> 
> Maybe you are interested to merge this in a future release.

Merged into trunk, will be available in 0.14.10.
Thank you.

-- 
    DO4-UANIC

Other related posts: