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:
1 parent
968593106e
commit
9dae2de2fa
2 files changed
+441
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user