Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Avatar of Benny148148
    benny148148
    Participant

    @benny148148

    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)
  • Avatar of Reprocessor
    reprocessor
    Participant

    @reprocessor

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

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    It needs a stripslashes call, which I will add.

    Avatar of Benny148148
    benny148148
    Participant

    @benny148148

    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?

    Avatar of Benny148148
    benny148148
    Participant

    @benny148148

    Anybody know how to fix?

    Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

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

    Avatar of Benny148148
    benny148148
    Participant

    @benny148148

    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

    Avatar of Benny148148
    benny148148
    Participant

    @benny148148

    Anybody?

    Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

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

    Avatar of Lance Willett
    Lance Willett
    Participant

    @lancewillett

    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.

    Avatar of Lance Willett
    Lance Willett
    Participant

    @lancewillett

    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.

    Avatar of Benny148148
    benny148148
    Participant

    @benny148148

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

    Avatar of Corourke
    corourke
    Participant

    @corourke

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

    Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Corourke, which version of BP are you using?

    Avatar of TheEasyButton
    TheEasyButton
    Participant

    @theeasybutton

    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)

    Avatar of TheEasyButton
    TheEasyButton
    Participant

    @theeasybutton

    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.