I found bug in upload Photos functionality

Apr 16, 2010 at 12:46 AM

Then i tryed to uploud the photo to some album (Admin->Add Photo) -the photo cannot be seen because it been saved with extra '.jpg' (or other extention)

This error caused in Helpers.SEOFriendlyURL() function there the code returnes the url + extention (when the extention already inside url)
My sujjestion to fix it -to replace this code

return ResolveUrl(vURL.Replace("#", "").Replace(" ", "-") + vExtension);

by this:

string s=ResolveUrl(vURL.Replace("#", "").Replace(" ", "-"));
 return (s.IndexOf(vExtension) > -1) ? s : (s + vExtension);

 

Hope it will help somebody...