Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug when user types a wrong (invalid) slug
#1
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.
Rejoice! For very bad things are about to happen.
Reply
#2
Thanks again Knitter.

Sorted in the latest SVN

Mike.
My Github Repos: Github
Website: DigiMute
Reply




Users browsing this thread: 1 Guest(s)