denny / ShinyCMS

ShinyCMS is an open source CMS. This is the Perl version, built with Catalyst and DBIC. (There is also a Ruby on Rails version: www.github.com/denny/ShinyCMS-ruby)
56 stars 24 forks source link

Edit Blog Post, URL Title, Failure To Save Changes #18

Closed wbraswell closed 9 years ago

wbraswell commented 9 years ago

I accidentally named my blog post URL "fleet_mtg_min-_20140820" when I really wanted an "s" instead of a "-".

When I changed it to "fleet_mtg_mins_20140820" and clicked "Save changes", it talked to the server and came back with a green "Blog post updated" success message. However, it was not actually changed.

Even more weirdly, I can rename it to "fleet_mtg_min" or "fleet_mtg_min-_2014082" but if I try to go from "fleet_mtg_min" to "fleet_mtg_mins_20140820" it will magically switch the "s" to an "-" and go return "fleet_mtg_min-_20140820" instead!

denny commented 9 years ago

Fixed in recent update - error in regex in make_url_title() was removing literal 's' instead of whitespace (\s).