Opened 7 years ago

Closed 7 years ago

Last modified 2 years ago

#104 closed defect (fixed)

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
Keywords: patch Cc:
Application: PHP Version:
Other Exts: SAPI: FastCGI
Probability: Blocked By:
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 (1)

xcache-admin-remove-magic-quotes-gpc.diff (2.0 KB) - added by blueyed 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by blueyed

comment:1 Changed 7 years ago by moo

  • Status changed from new to assigned

thanks :)

comment:2 Changed 7 years ago by moo

  • Milestone set to 2.0.0
  • Version changed from 1.2-dev to 2.0.0-dev

comment:3 Changed 7 years ago by moo

thanks, fixed in [418]

comment:4 Changed 7 years ago by moo

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:5 Changed 2 years ago by moo

  • Milestone changed from 2.2.0 to 2.0.0
Note: See TracTickets for help on using tickets.