Results 1 to 6 of 6

Thread: CP inserts slashes in front of apostrophes and quotes

  1. #1
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    CP inserts slashes in front of apostrophes and quotes

    When an ad is submitted without completing all required fields, the text that was already entered gets distorted if it contains quotes or apostrophes (and maybe other characters I haven't checked)

    For example, if the description field contains:

    Hi this is a test "post".

    I'm a test post.
    it get's turned into:

    Hi this is a test \"post\".

    I\'m a test post.
    If the title field contains:

    Hi this is a test "post"
    it gets turned into:

    Hi this is a test \
    anyone else experiences this?

  2. #2
    Member
    Not a Verified Customer
    secretstache's Avatar
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: CP inserts slashes in front of apostrophes and quotes

    i've noticed weird stuff happening with apostrophes too. In email headers, and at paypal, as well as some other spots too.

  3. #3
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: CP inserts slashes in front of apostrophes and quotes

    yah, i've noticed this in the emails too

  4. #4
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: CP inserts slashes in front of apostrophes and quotes

    I'll be having a jobs section, and will allow job seekers to send resumes to employers, and allow employers to post jobs.

    This raises the importance of fixing this slash-insertion bug, as human resources people and job seekers are generally very attentive to small details and will frown on website flaws such as this.

  5. #5
    Affiliate Member AppThemes Affiliate cjseven's Avatar
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: CP inserts slashes in front of apostrophes and quotes

    Hi,

    Try to config wpclassipress to allow HTML in description.

    The "slash thing" is normal in most websites that allow user contribution. Why? Because it is a security measure to prevent malware insertion like javascript code and so on that could damage your site and server.

    You can always rectify that slashes from admin!

    Antonio Almeida
    [url="http://www.licenciados.info"]http://www.licenciados.info[/url] | [url="http://www.formacao.info"]http://www.formacao.info[/url] | [url="http://www.alugarquarto.net"]http://www.alugarquarto.net[/url] | [url="http://www.alugarapartamento.net"]http://www.alugarapartamento.net[/url] | [url="http://www.comprarapartamento.net"]http://www.comprarapartamento.net[/url]

  6. #6
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: CP inserts slashes in front of apostrophes and quotes

    This will be fixed in v2.9.3 or you can manually do it yourself.

    edit post-form.php and any form values that you see like this:
    Code:
    value="<?php echo $_POST['post_title'];?>"
    should be wrapped with a stripslashes function like this:
    Code:
    value="<?php echo stripslashes($_POST['post_title']);?>"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)