2 tblue Dec 06, 2008 19:19

:D
Thanks for that Austriaco
I suddenly found that I could not access some older posts with the hyphen at the end.
My blog is updated to 2.4.6, yet I am having this issue as well.
I have been upgrading via the version-to-version patches so maybe something was missed. Could someone direct me to which file contains the fix for the issue so I could compare versions and/or apply the fix?
I would prefer not to update the DB titles to prevent breaking of some links. ;)
Thanks for any help!
What's the best solution for this, then? I have the same problem.
I ended up applying the patch noted above (a simple one really). I just wasn't sure that was the "official" fix and I was still having the issue in the latest version of b2evo.
I've been using the upgrade "patches", so I don't know if perhaps the official fix was left out of those?
I'm doing the official fix right now.
It's still broken on 2.4.6 ;)
if( ( $last_char == '-' && ( strlen( $path_string ) != 40 ) ) || $last_char == ':' || $last_char == ';' )
Hum... I was really thinking about change the way that we detect the things on urls ;)
The Afwas suggestion would work,except in the case where you have a tag slug with 39 chars, ans uses dashes ;)
This has been fixed in HEAD.
You could try this query to remove all the trailing "-" chars from your URL titles:
Of course make sure you have a database backup before executing the query...
The disadvantage of this solution is that some old URLs might not work anymore.
//edit: Fixed in HEAD and v-2-4. Thanks for reporting!