Yeah, I’ve experienced this too – if there’s a fix available i’d appreciate the know-how
It needs a stripslashes call, which I will add.
Andy, for those of us not using SVN (I’m using a trunk version from about a month ago)…how can we fix this ourselves?
benny this has nothing to do with bp itself. It’s a theme thing that is happening here only.
Actually Burtadsit it’s happening to the “private messages” section of my buddypress install. Specifically the subject of the message before a user clicks to open it. Anytime there’s an apostrophe in the subject of a private message (in my installation), the slashes are added.
How can I remove them? I’m using Trunk 1211
Ok, let me put it another way. It’s not an issue on my install which is the latest trunk.
I was able to duplicate this behavior, but don\’t have a fix in mind for it. This is with the latest trunk (revision 1302):
To repeat, log in as a user and send a message to another user with this subject line: Just wondering how you\'re doing
When that first message saved to the database, the field value is this: Just wondering how you\'re doing
So far, so good.
Now log out and log in as a different user (the recipient), and go to the messages area. Click the subject to open the message, and type a reply.
Now look in the database (in the \”wp_bp_messages_messages\” table) and you\’ll see that the subject field for the reply is: Re: Just wondering how you\\\'re doing
Now repeat this four or five times, and you\’ll see that each time the message gets saved extra slashes are added:
Re: Just wondering how you\\\\\\\'re doing
Re: Just wondering how you\\\\\\\\\\\\\\\'re doing
Re: Just wondering how you\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'re doing
The issue, as far as I can tell, is that when the subject is saved, the escape characters (slashes) from the previous subject line are themselves escaped.
I also noticed a similar behavior here in this very form where I’m typing (forums, edit topic).
If I post a topic, then edit it, more slashes are added each time I edit. For example, if I edit the same post 3 or 4 times, I’ll end up with \\\\\\\\\\\\\\\it's
instead of just it's
.
Does anybody have any clue how to fix it? It’s still an issue in the latest trunk
I’m still seeing this issue as well as it occurring in profile form fields.
Corourke, which version of BP are you using?
Any clue on a fix for the escapes? I’m having the issue in group topic titles. Groups look fine but when you look at the topic in bbPress, there are escapes in the title.
Posting via bbPress it works fine. Posting via groups, the titles get escapes.
Hoping the fix for this can be applied to my issue as well. (using BP1, bbPress alpha6, wpmu 2.7.1)
Removing post cuz it was WRONG!! lol – (sorry about that)