coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: icemandan on January 09, 2006, 01:06:18 AM

Title: \' text issue
Post by: icemandan on January 09, 2006, 01:06:18 AM
Not sure if this has been addressed, I looked for awhile and didn't find anything.

Every time an ' (apostrophe) is included in a photo's title or description it is always preceded by a \ (backslash).

Is there a fix for this?     btw... I have upgraded from 1.3.5 to 1.4.3 and the issue applies to both versions.

Thank you.
Title: Re: \' text issue
Post by: Paver on January 09, 2006, 05:56:45 AM
Do you have a link to show this?  I just checked it on my site and the apostrophes look fine.  They should be converted to the HTML code: ' .
Title: Re: \' text issue
Post by: icemandan on January 10, 2006, 03:13:42 AM
the coppermine gallery in question is located at http://jayfromwiller.com/coppermine/index.php

Thank you for the help!  :)
Title: Re: \' text issue
Post by: kegobeer on January 10, 2006, 03:46:26 AM
Do a phpinfo and look for magic_quotes.  If it is On, that would explain why you have a slash before your apostraphes.
Title: Re: \' text issue
Post by: icemandan on January 10, 2006, 04:26:51 AM
Good call kegobeer.  Seems that magic_quotes is turned on and worse is the fact that I can't turn it off.  Do you know of a workaround?  Like where are the 8 million places I need to add a call to stripslashes()
Title: Re: \' text issue
Post by: Paver on January 10, 2006, 05:37:26 AM
I don't know if this would work, but I wonder if you could add stripslashes() to your theme.php and override all the display output variables & functions (by copying those from sample/theme.php) - since you are worried about the display, not really the actual content, unless you get into a nested slash issue - I have no clue whether that can happen.
Title: Re: \' text issue
Post by: icemandan on January 10, 2006, 05:58:30 AM
Thank you for the help.  ;)  I will have to try the theme option out, but it can wait for now.

I will update this with the outcome of my attempt when I get the chance, just in case someone else wants to know.

Thanks Again!