cole2295 / subtext

Automatically exported from code.google.com/p/subtext
0 stars 0 forks source link

Category name with a dot doesn't get a rss link (and causes error in WLW) #311

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get the current trunk and built it
2. Add some categories with a dot in the name (e. g. .NET, ASP.NET, ...)
3. Open the Archive Link, or try to select a category in Windows Live Writer

What is the expected output? What do you see instead?
Expected: Everything works like a charm
Instead: RSS Links don't get generated in Archive Page, WLW shows no categories 
but an error message

What version of the product are you using? On what operating system?
Current Trunk, Win 7

Please provide any additional information below.

The cause seems to be that the route "category-rss" in routes.cs can't find 
anything when a dot is in the category name. The regex for the slug says: 
[-\w\s\d]+
So there is no exact match because of the dot
Something like this should probably fix it: [-\w\s\d\.]+

But I'm not sure if this would cause any other issues

Original issue reported on code.google.com by codemu...@googlemail.com on 30 Sep 2011 at 8:22