dendrite/mediaapi/routing
Sid Karunaratne 31e6a7f193
Enforce mediaIDRegex to be only valid mediaIDCharacters (#1020)
Error messages indicate that:
> mediaId must be a non-empty string using only characters in `mediaIDCharacters`

However the regex used only required that some characters in the filename match
the restriction, not that the entire filename does. This commit ensures that
the filename must entirely fullfill the `mediaIDCharacters` restriction

Signed-off-by: Sid Karunaratne <sid@karunaratne.net>

Co-authored-by: Kegsay <kegan@matrix.org>
2020-05-13 12:04:54 +01:00
..
download.go Enforce mediaIDRegex to be only valid mediaIDCharacters (#1020) 2020-05-13 12:04:54 +01:00
routing.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
upload.go Implement storage interfaces (#841) 2020-01-03 14:07:05 +00:00