[PHPLIB-DEV] ct_sql From: Kirill Maximov (kir <email protected>)
Date: 11/04/99

 hi,

  I've just commited the new version of ct_split_sql.inc which is
rewritten
  ala ct_sql.inc. I have one question - it seems to me that
 decoding function for "slashes" should be empty, not stripslashes,
 because after retriving session data string from database it no longer
contains
 escaping characters. So the declaration of $enc_methods
 should be

    var $enc_methods = array(
      "base64" => array("enc" => "base64_encode", "dec" =>
"base64_decode"),
      "slashes" => array("enc" => "addslashes", "dec" => "strval")
    );

  With this declaration encoding type "slashes" works for me, with
"stripslashes" - no.

  Opinions ?

  Best Regards,
  KIR

--
-----  -----  -----  -----  -----  -----  -----  -----
 Kirill Maximov;   maximov <email protected>  ICQ: 14796643
 Chief of Software Development Department,
 Astrive, Inc.

- PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.