php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #344 StripSlashes function doesn't seem to be returning a value in certain places
Submitted: 1998-05-04 14:03 UTC Modified: 1998-05-15 11:17 UTC
From: chris at wild dot net Assigned: zeev (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS OS: Solaris 2.5.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at wild dot net
New email:
PHP Version: OS:

 

 [1998-05-04 14:03 UTC] chris at wild dot net
I'm using Jay Bloodworth's FormClass (if you are not familiar with it, I can send you a copy).  The following
is the code snippet:

$page1 = new form;
$field = array( "type"=>"text",
		"name"=>"name_of_assured",
		"size"=>"45",
		"max_l"=>"60",
		"value"=>StripSlashes( $name_of_assured ),
		"min_l"=>"1",
$page1->add_element( $field );
unset( $field );

The "value" key is not being set to be the return value of
the StripSlashes function.  Whenever the value gets redisplayed in the form, the slashes are still there escaping any single quotes.

Configure Line:
./configure --with-apache=/usr/local/src/apache_1.2.6/ --with-mysql --with-msql --with-system-regex=yes --enable-debug=no --enable-safe-mode=yes --with-exec-dir =/usr/local/safebin --enable-track-vars=yes --enable-magic-quotes=yes



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-15 11:17 UTC] zeev
This turns out to be an 'incompatability' between the
user's script and the form class.

PHP itself is fine.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC