bugHomesite Maker, the websites factory - Bugs: bug #15525, Unexpected results when...

 
 

bug #15525: Unexpected results when magic_quotes_gpc are enabled in the php.ini config file

Submitted by:  Marcos Martínez Jiménez <melmak>
Submitted on:  Tue 24 Jan 2006 09:38:17 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Marcos Martínez Jiménez <melmak>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 30 Jan 2006 07:55:37 PM UTC, comment #1:

Problem has been solved using something like this:

if (!get_magic_quotes_gpc()) {
$text_form = addslashes($_POST['text_form']);
} else {
$text_form = $_POST['text_form'];
}

Now, it doesn't matter if the magic_quotes_gpc are enabled or not in php.ini file.

Marcos Martínez Jiménez <melmak>
Project AdministratorIn charge of this item.
Tue 24 Jan 2006 09:38:17 PM UTC, original submission:

When magic_quotes_gpc are enabled in the "php.ini" file, we get a redundant backslashes before the special characters like " (double quotes).
The problem is affecting to the news and info sections.

We may use get_magic_quotes_gpc() and set_magic_quotes_runtime() functions to prevent this problem.

Marcos Martínez Jiménez <melmak>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 30 Jan 2006 08:06:15 PM UTCmelmakOpen/ClosedOpen=>Closed
Mon 30 Jan 2006 07:55:56 PM UTCmelmakStatusIn Progress=>Fixed
Mon 30 Jan 2006 06:32:42 PM UTCmelmakStatusNone=>In Progress

Back to the top


Powered by Savane 3.1-cleanup1