gitit icon indicating copy to clipboard operation
gitit copied to clipboard

Error when creating a page with dot/period/fullstop in title

Open qguv opened this issue 7 years ago • 2 comments

Creating a page with the title et. al. and any content causes the following error

Happstack 7.4.6.1

Something went wrong here
Internal server error
Everything has stopped

The error was "IllegalResourceName"

qguv avatar Jul 06 '16 14:07 qguv

It's a bug in jgm/filestore's isInsideDir function. It just checks for .. inside the strings, rather than making sure that it's not something like et. al..page.

kyrias avatar Jul 19 '16 08:07 kyrias

(And I just noticed that this is already mentioned in the comment above the function.)

kyrias avatar Jul 19 '16 08:07 kyrias