Skip to:
Content
Pages
Categories
Search
Top
Bottom

Apostrophes turn to "///" in Subject Line of Private Messages

  • @benny148148

    Participant

    When a user writes a private message to another user with a subject of something like “Just wondering how you’re doing” it turns into “Just wondering how you/re doing”.

    I could live with that, however the more replies that go back and forth in this same conversation, the more “///’ add on. With 10-12 messages, the subject line eventually becomes “Just wondering how you///re doing”

    How can I fix that?

Viewing 15 replies - 1 through 15 (of 15 total)
  • @reprocessor

    Participant

    Yeah, I’ve experienced this too – if there’s a fix available i’d appreciate the know-how ;)

    @apeatling

    Keymaster

    It needs a stripslashes call, which I will add.

    @benny148148

    Participant

    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?

    @benny148148

    Participant

    Anybody know how to fix?

    @burtadsit

    Participant

    benny this has nothing to do with bp itself. It’s a theme thing that is happening here only.

    @benny148148

    Participant

    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

    @benny148148

    Participant

    Anybody?

    @burtadsit

    Participant

    Ok, let me put it another way. It’s not an issue on my install which is the latest trunk.

    @lancewillett

    Participant

    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.

    @lancewillett

    Participant

    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.

    @benny148148

    Participant

    Does anybody have any clue how to fix it? It’s still an issue in the latest trunk

    @corourke

    Participant

    I’m still seeing this issue as well as it occurring in profile form fields.

    @johnjamesjacoby

    Keymaster

    Corourke, which version of BP are you using?

    @theeasybutton

    Participant

    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)

    @theeasybutton

    Participant

    Removing post cuz it was WRONG!! lol – (sorry about that)

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Apostrophes turn to "///" in Subject Line of Private Messages’ is closed to new replies.
Skip to toolbar