Source-X icon indicating copy to clipboard operation
Source-X copied to clipboard

Webpage settings doesn't respect WebPageSrc

Open mtwango opened this issue 2 years ago • 1 comments

When setting webpage generation, WebPageSrc is not taken into acount. For example, if I change on WEBPAGE 1 line WebPageSrc=scripts/web/spherestatusbase.htm to anything else (like scripts/web/status.json), sphere sends warning with WARNING:'spherestatusbase1.htm' not found....

This is likely because filename seems hardcoded in CWepPageDef.cpp

mtwango avatar Mar 16 '22 22:03 mtwango

This seems to be little more complicated. If we allow using filename from config, using m_sSrcFilePath = rid.GetResPage(); it can still fail to load. It will happen here, if we use file extension, that is not in allowed extension list.

mtwango avatar Mar 28 '22 08:03 mtwango