Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Still having problem with invalid characters

Quote Reply
Still having problem with invalid characters
Hi!

I still can't solve the invalid character problem.

All I want to do is build a category called "Society & Culture"
without the quotes.

In your FAQ you said to look for the follwoing in link.cfg:

# Allowable extra characters. The program defaults to let you use
# letters, numbers, the "/" and the "_". Never allow a "." and only
# allow the minimum chars that work for you.
$build_allow_char = "-";

First off, there's no such paragraph in the copy of link.cfg
that I've downloaded. It's version 2.0 that I got from your
site a few weeks ago.

Anyway, I added in the following line in link.cfg under
build options --

$build_allow_char = "-&";

After that, I went into admin.cgi to add the new category as
follows:

Name: Society_&_Culture

It didn't work. Still illegal format or something like
that. Is there some step that I missed out?

Please help!

TIA

Fantan


Quote Reply
Re: Still having problem with invalid characters In reply to
build_allow_char is for links1.1 not for 2.0
i tried using & and i got an error as well so just try not to use it and do it like this Society_and_Culture
i hope this helps
Quote Reply
Re: Still having problem with invalid characters In reply to
I have been using 2.0 since it first came out and my version does contain the code you need.

In links.cfg find code
Code:
# Directory Permissions. Do NOT put quotes around it. Set to 0777
# for world writeable. If you put this at 0755, you might need a
# script to remove any directories created as they will be owned
# by the web server or user nobody. Better solution might be to
# run the nph-build routine from the command shell.
$build_dir_per = 0777;
After that add this
Code:
# Allowable extra characters. The program defaults to let you use
# letters, numbers, the "/" and the "_". Never allow a "." and only
# allow the minimum chars that work for you.
$build_allow_char = ".-";
Quote Reply
Re: Still having problem with invalid characters In reply to
Fantan,

Which version of Links are you using and what is the URL of the FAQ you are looking at?

theguy,

See www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/001103.html but substitute \& for the + sign.

mwebster,

I do not see how that would work since $build_allow_char is not used in any Links v2.0 script. The $build_allow_char is a Links v1 variable. You must not have used the v2.0 links.cfg file.

[This message has been edited by Bobsie (edited July 03, 1999).]
Quote Reply
Re: Still having problem with invalid characters In reply to
Hello!

Thanks to all the help.

I did what was stated in --

www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/001103.html

It worked but I hope there's no side effects (security risk?) as I'm not too sure what the following warning means: -

"You should now be able to use the plus sign in the category name. However, be aware, that the plus sign will also be used in the directory name for that category."


Fantan
Quote Reply
Re: Still having problem with invalid characters In reply to
That little caution doesn't mean much for you since your use of the characters is the & and not the + sign. However, you may have problems in the search routines with the & being used.