GetSimple Support Forum
Bug when user types a wrong (invalid) slug - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Bug when user types a wrong (invalid) slug (/showthread.php?tid=1174)



Bug when user types a wrong (invalid) slug - Knitter - 2010-12-10

Hi,

I found a small but annoying bug. Don't really know how to reproduce it as I just found it but I think GS didn't validate the slug I typed when creating a new page.

I created a page and wrongly left a space at the end of the slug name, the XML file was created with that space and the extension was appended to that name, e.g.: "about .xml". The page is created correctly, all data is saved, and the page is listed in the admin interface but if I try to access it, either in the admin interface or the front-end, I get a "page doesn't exist" error.

I'll try to find out more and see if I can provide a fix, just posting so that I don't forget Smile and so that anyone else can correct the issue if they have the time.

As a work around, one can just rename the XML file to remove the space.


Bug when user types a wrong (invalid) slug - n00dles101 - 2010-12-10

Thanks again Knitter.

Sorted in the latest SVN

Mike.