Skip to content

Commit

Permalink
Enabling Auto Escaped Templates & Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnDamerell committed Jan 28, 2025
1 parent 2475946 commit eedce4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions octoprint_octoeverywhere/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def is_wizard_required(self):
def get_wizard_version(self):
return 10

# Turns on auto escaping for the template.
# Improves security, recommended here: https://community.octoprint.org/t/how-do-i-improve-my-plugins-security-by-enabling-autoescape/61067
def is_template_autoescaped(self):
return True

def get_wizard_details(self):
# Do some sanity checking logic, since this has been sensitive in the past.
printerUrl = self.GetAddPrinterUrl()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
# Note that this single version string is used by all of the plugins in OctoEverywhere!
plugin_version = "3.6.6"
plugin_version = "3.6.7"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit eedce4a

Please sign in to comment.