mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
🔧 fix: Apply Convo Export filename sanitization at export, not input (#8779)
Co-authored-by: Woosub Kim <woosub.kim@navercorp.com>
This commit is contained in:
parent
056172f007
commit
e192c99c7d
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ export default function ExportModal({
|
||||||
|
|
||||||
const { exportConversation } = useExportConversation({
|
const { exportConversation } = useExportConversation({
|
||||||
conversation,
|
conversation,
|
||||||
filename,
|
filename: filenamify(filename),
|
||||||
type,
|
type,
|
||||||
includeOptions,
|
includeOptions,
|
||||||
exportBranches,
|
exportBranches,
|
||||||
|
|
@ -95,7 +95,7 @@ export default function ExportModal({
|
||||||
<Input
|
<Input
|
||||||
id="filename"
|
id="filename"
|
||||||
value={filename}
|
value={filename}
|
||||||
onChange={(e) => setFileName(filenamify(e.target.value || ''))}
|
onChange={(e) => setFileName(e.target.value || '')}
|
||||||
placeholder={localize('com_nav_export_filename_placeholder')}
|
placeholder={localize('com_nav_export_filename_placeholder')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue