Squirt 3.21
SplashCliValidation Class Reference

Validates a panel path rooted below the project's panels directory. More...

Public Member Functions

public bool isSafePanelPath (const string path)
 Checks a relative .pnl path; one leading slash is optional. More...
 
public bool isSafeTestScriptPath (const string path)
 Checks a test script path rooted below scripts/tests. More...
 

Detailed Description

Validates a panel path rooted below the project's panels directory.

Attention
This documentation is created with the help of an artificial intelligence.

Member Function Documentation

◆ isSafePanelPath()

public bool SplashCliValidation::isSafePanelPath ( const string  path)

Checks a relative .pnl path; one leading slash is optional.

Parameters
pathPanel path relative to the panels directory.
Returns
true when the path is safe and names a panel file.

◆ isSafeTestScriptPath()

public bool SplashCliValidation::isSafeTestScriptPath ( const string  path)

Checks a test script path rooted below scripts/tests.

Parameters
pathProject-relative path to a generated CTRL test script.
Returns
true when the path is safe and names a nested .ctl file.

The documentation for this class was generated from the following file: