Help Center Live Community
July 23, 2014, 08:48:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]   Go Down
Author Topic: messy quoting handling  (Read 2869 times)
Not too much to say...
Offline Offline

Posts: 6

« on: January 25, 2010, 06:19:58 AM »

In js chat. php Chat class initialization,

a probably better handling of quotes in names is this:

        this.guest = '<?php echo addslashes($_SESSION['hcl_'.$chatid]['guest']);  ?>';
        this.operator = '<?php echo addslashes($_SESSION['hcl_'.$chatid]['operator']); ?>';
        this.department = '<?php echo addslashes($_SESSION['hcl_'.$chatid]['department']); ?>';

Having quotes in names are problematic everywhere, but it should be handled anyways.
Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.157 seconds with 19 queries.

Google visited last this page July 20, 2014, 07:11:43 PM