Forums

NextGEN Gallery
Quotes in Description are escaped \" - Unwanted! (4 posts)

  1. nr2012
    Member
    Posted 4 months ago #

    Hi there

    I'm using the nextgen gallery to upload images to my side and add some description (copyright info) below the picture.

    Unfortunately, If I'm enterin quotes in the description area the quotes (single- and double-) are escaped before writing the description in my mysql database.

    as a consequence I have nasty escape characters in my copyright information.
    How can I get rid of those escape-things?

    (I tried to turn of magic quotes on my webhosts php.ini, but somehow this didn't have any effect.)

    Any idea?

    I would really be glad to hear so.

    Thx & cheers

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. nr2012
    Member
    Posted 4 months ago #

    I now just added the php-code:

    stripslashes($mydescriptionstring)

    worked allright, but probably isn't the best solution....

    ciao

  3. teplitz
    Member
    Posted 1 month ago #

    Into which php file did you add the stripslashes function? What I have found is that if you use " it's fine until you edit the gallery again, then it reverts to \". If you use " it's fine until you edit the gallery then it becomes a space.

    Thanks.

  4. teplitz
    Member
    Posted 1 month ago #

    Wow, it strips it out here too!

    What I have found is that if you use &-#34-; it's fine until you edit the gallery again, then it reverts to \". If you use &-quot-; it's fine until you edit the gallery then it turns into a space.

Reply

You must log in to post.

About this Plugin

About this Topic