-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.0.39] Fix: Hardening resolve script path
- Loading branch information
1 parent
83cc8f2
commit a46ff29
Showing
51 changed files
with
15,019 additions
and
674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
################### | ||
# This package implements a web server to run scripts or executables | ||
# from the command line and display the result in a web interface. | ||
# Copyright (C) 2021, 2022, 2023 Maurice Lambert | ||
|
||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
|
||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
################### | ||
|
||
""" | ||
This tool runs CLI scripts and displays output in a Web Interface. | ||
This file contains WebScripts exception classes. | ||
""" | ||
|
||
__version__ = "0.0.2" | ||
__author__ = "Maurice Lambert" | ||
__author_email__ = "[email protected]" | ||
__maintainer__ = "Maurice Lambert" | ||
__maintainer_email__ = "[email protected]" | ||
__description__ = """ | ||
This tool runs CLI scripts and displays output in a Web Interface. | ||
This file contains WebScripts exception classes. | ||
""" | ||
__license__ = "GPL-3.0 License" | ||
__url__ = "https://github.com/mauricelambert/WebScripts" | ||
|
||
copyright = """ | ||
WebScripts Copyright (C) 2021, 2022, 2023 Maurice Lambert | ||
This program comes with ABSOLUTELY NO WARRANTY. | ||
This is free software, and you are welcome to redistribute it | ||
under certain conditions. | ||
""" | ||
license = __license__ | ||
__copyright__ = copyright | ||
|
||
__all__ = [ | ||
"WebScriptsError", | ||
"WebScriptsConfigurationError", | ||
"WebScriptsArgumentError", | ||
"ScriptConfigurationError", | ||
"MissingAttributesError", | ||
"WebScriptsConfigurationTypeError", | ||
"WebScriptsSecurityError", | ||
] | ||
|
||
|
||
class WebScriptsError(Exception): | ||
""" | ||
To raise WebScripts errors | ||
""" | ||
|
||
pass | ||
|
||
|
||
class WebScriptsConfigurationError(WebScriptsError): | ||
""" | ||
To raise Configuration Error. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class WebScriptsConfigurationTypeError(WebScriptsConfigurationError): | ||
""" | ||
To raise Configuration Error. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class WebScriptsArgumentError(WebScriptsError): | ||
""" | ||
To raise Argument Error. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class ScriptConfigurationError(WebScriptsConfigurationError): | ||
""" | ||
To raise Script Configuration Error. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class MissingAttributesError(WebScriptsError): | ||
""" | ||
To raise Missing Attributes Error. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class WebScriptsSecurityError(WebScriptsError): | ||
""" | ||
To raise Security Error in WebScripts services. | ||
""" | ||
|
||
pass |
Oops, something went wrong.