fix: Sanitize title and new name inputs by replacing invalid characters

This commit is contained in:
sha
2025-12-30 11:10:38 +00:00
parent 6b343681a5
commit fe11dc45f1
5 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ Do you want to proceed with renaming?
def on_input_changed(self, event):
if event.input.id == "new_name_input":
self.new_name = event.input.value
self.new_name = event.input.value.replace("/", "-").replace("\\", "-")
self.new_path = self.old_path.parent / self.new_name
self.was_edited = True
# Update the display