Ticket #104 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years 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 Download (2.0 KB) - added by blueyed 5 years ago.

Change History

Changed 5 years ago by blueyed

Changed 5 years ago by moo

  • status changed from new to assigned

thanks :)

Changed 5 years ago by moo

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

Changed 5 years ago by moo

thanks, fixed in [418]

Changed 5 years ago by moo

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