Hello,
On my blog script I use the following code to validate the story titles:
if( !preg_match("/^[A-Za-z0-9_.]+$/", $HTTP_GET_VARS['story']) )
{
$template->assign_var('PAGE_TITLE', 'No story set');
$template->pparse('header');
blog_die(GENERAL_ERROR, 'Specify a valid story name.', 'No story set.');
}
Now I have one issue, cause the title can also contain the ' character(single quot).
I have now tried several things, but cannot figure out a way to include this within the allowed character set.
Any help appriciated.