|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1370 The sybase module doesn't escape ' characters
Submitted: 1999-05-02 20:26 UTC Modified: 1999-05-12 10:16 UTC
From: pettern at thule dot no Assigned:
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 3.0.7 OS: Redhat Linux 5.2
Private report: No CVE-ID: None
 [1999-05-02 20:26 UTC] pettern at thule dot no
The mysql module escapes various characters like " by adding a \ before the character to be escaped. The Sybase module does not escape the ' character by prepending an extra ' as it should do, causing Sybase to complain.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-02 20:52 UTC] Jim Winstead <jimw at php dot net>
Actually, the mysql module doesn't do any escaping. This is handled
1by the magic_quotes settings in your php3.ini (or Apache configuration),
1and there's a special flag to do the quoting Sybase-style (called
1magic_quotes_sybase, if memory serves me right).

 [1999-05-12 10:16 UTC] rasmus at cvs dot php dot net
Jim's answer should take care of this appropriately.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 02:02:52 2024 UTC