[pmwiki-users] apostrophes getting doubled, backslashes stripped

Ben Stallings ben at interdependentweb.com
Fri Dec 19 16:25:00 CST 2008

Patrick R. Michaud wrote:
> On Fri, Dec 19, 2008 at 02:29:00PM -0600, Ben Stallings wrote:
>> Something weird has begun happening on one of my sites, since I changed 
>> hosts a few days ago.  Whenever I submit changes to a page, all 
>> apostrophes (') get doubled (''), and all double backslashes (\\) are 
>> turned into single backslashes (\).
>> It seems to me the most likely culprit would be magic_quotes_sybase: 
>> http://us3.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
>> However, phpinfo shows that this feature is turned off:
>> http://www.psduua.org/info.php
> It does look very much like the sybase quotes feature is enabled.
> Did you try running info.php from the same directory that houses
> PmWiki?  I'm wondering if a .htaccess or other per-directory
> configuration might be turning it back on.
> In particular, I'd look at the ?action=phpinfo settings from your
> PmWiki installation instead of just the info.php output.
> Pm

Hm, good thinking.  http://www.psduua.org/?action=phpinfo shows that the 
local value for magic_quotes_sybase is off, but the master value is on. 
  Could that cause a problem?  How does one change the master value? 
(how did it get turned on, when it was off for the enclosing directory? 
  I checked all the .htaccess files...)

Thanks for your attention, Pm!  Hope all's well with you and your 
family.  --Ben

More information about the pmwiki-users mailing list