Ticket #104 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

Remove magic quotes when saving a value [patch]

Reported by: blueyed Owned by: moo
Priority: major Milestone: 2.0.0
Component: admin Version: 2.0.0-dev
Keywords: patch Cc:
Blocked By: PHP Version:
Application: Need User Feedback: no
Other Exts: SAPI: FastCGI
Probability: Blocking:

Description

When you edit a value in the XCache admin, magic quotes (inserted by PHP) do not get removed.

Therefor, with magic_quotes_gpc=pn a value like "'foo'" will get saved as "\'foo\'" by xcache.

I'll attach a patch with fixes this, by dynamically defining a remove_magic_quotes() function to handle this.

Attachments

xcache-admin-remove-magic-quotes-gpc.diff (2.0 kB) - added by blueyed 16 months ago.

Change History

Changed 16 months ago by blueyed

Changed 16 months ago by moo

  • status changed from new to assigned

thanks :)

Changed 16 months ago by moo

  • version changed from 1.2-dev to 2.0.0-dev
  • milestone set to 2.0.0

Changed 16 months ago by moo

thanks, fixed in [418]

Changed 16 months ago by moo

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.