percussion / percussioncms

Percussion CMS - Content Management System
https://percussioncmshelp.intsof.com/percussioncms
Apache License 2.0
11 stars 9 forks source link

Add Validation against known mime types when creating a page #736

Closed mariosm1 closed 7 months ago

mariosm1 commented 1 year ago

Is your feature request related to a problem? Please describe. Invalid file names can be published, but can not be served by the webserver (for example "filename.-24"). This leads to some confusion about whether or not a page was published.

Describe the solution you'd like With this improvement, we would like to prevent invalid file extensions in page file names. For example, the page "filename-.24" should not get created with this validation, as .24 is not a known mime type. Known mime types will be listed in the mimemap.properties

natechadwick commented 7 months ago

@rgarg24 Didn't you work on a fix for this one?

natechadwick commented 7 months ago

Fixed by https://github.com/percussion/percussioncms/pull/1206