forum.coppermine-gallery.net
Support => Older/other versions => cpg1.3.x Support => Topic started by: azism on October 09, 2005, 11:44:25 pm
-
I have run into a problem with special characters in picture text, such as description, title, etc. For example, with a name such as O'Neil, it displays as O\'Neil. For an year, such as '98, it displays as \'98. Same with other characters such as the quote.
Any suggestions???
-
I run a standalone version of cpg135 and I can't duplicate this anywhere. Both ' and " show up as typed in the titles and caption fields.
Dennis
-
I guess I didn't mention that this is the standalone 1.35 version, did I? It is. My host is running Apache/1.3.33 (Unix). I don't know if that make any difference of not, but there it is.
-
Hmm, try downloading a fresh copy of Cpg1.35 and copy over the files except your config.inc.php file. And see if the problem doesn't go away.
Dennis
-
I haven't tested it to much... in include/init.inc.php find
$HTML_SUBST = array('&' => '&', '"' => '"', '<' => '<', '>' => '>', '%26' => '&', '%22' => '"', '%3C' => '<', '%3E' => '>');
replace with
$HTML_SUBST = array('&' => '&', '"' => '"', '<' => '<', '>' => '>', '%26' => '&', '%22' => '"', '%3C' => '<', '%3E' => '>','%27' => ''', "'" => ''');
-
Okay, I will give it a shot and let you know how it goes. Thanks.
Update - I have uploaded and added a couple pictures with the problem characters and they are appearing just fine. Thank you!!! :)
-
;D
That has fixed the problem for me.
Thanks
Fielding