Optional filename sanitise.pl

From EPrints Documentation
Revision as of 10:49, 7 February 2022 by Drn@ecs.soton.ac.uk (talk | contribs) (Added config file page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Back to cfg.d

optional_filename_sanitise.pl contains configuration to optional parse the filename of an uploaded file to remove any characters before it is saved to the filesystem and written to the database. The $c->{optional_filename_sanitise} is commented out by default but can be activated by un-commenting. The default function replaces spaces, @ signs, right and left brackets with underscores.