Skip to content

Commit

Permalink
fix backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
madeindjs committed Jan 14, 2025
1 parent 547b58a commit 5279799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer/app_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def load_persisted_script(self, file = "main.py") -> str:
raise error

def _check_file_in_app_path(self, path):
if not str(os.path.abspath(path)).startswith(self.app_path):
if not os.path.abspath(path).startswith(os.path.abspath((self.app_path))):
raise PermissionError(f"{path} is outside of application ({self.app_path})")


Expand Down

0 comments on commit 5279799

Please sign in to comment.