Gossamer Forum
Home : Products : Links 2.0 : Customization :

Need to add a + to a category name

Quote Reply
Need to add a + to a category name
Is there anyway to add a + in a directory name?
Quote Reply
Re: Need to add a + to a category name In reply to
In category.def, %db_def:


Original codes:
Quote:
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_-]+$'],

Modified codes:
Quote:
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_+-]+$'],

In nphbuild.cgi, under sub build_check_dir:

Original codes:
Quote:
my $chrs = quotemeta ("/_-");

Modified codes:
Quote:
my $chrs = quotemeta ("/_+-");


Create the particular category with +, rebuild and it should be fine.

[This message has been edited by Eddie (edited August 07, 1999).]