fixed: FunctionParser skipped a function name after an item (file) if the name was not a name for a function

it should report a 404 in such a case


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@771 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-09-28 22:24:24 +00:00
parent 968593106e
commit 9dae2de2fa
2 changed files with 441 additions and 6 deletions

View File

@@ -73,13 +73,16 @@ void FunctionParser::ParseDirsItemFunction()
if( CheckAddItem() )
{
ReadName();
CheckAddFunction();
SkipSlashes();
if( !cur->request->function && *path && *path!='#' && *path!='?' )
if( !name.empty() )
{
log << log3 << "FP: unknown function: " << name << logend;
cur->request->status = WINIX_ERR_NO_ITEM;
CheckAddFunction();
if( !cur->request->function )
{
log << log3 << "FP: unknown function: " << name << logend;
cur->request->status = WINIX_ERR_NO_ITEM;
}
}
}
}