Help Center Live Community
July 22, 2014, 08:19:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: messy quoting handling  (Read 2867 times)
rsd
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:

Code:
        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.
Logged
Pages: [1]   Go Up
  Print  
 
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.325 seconds with 21 queries.

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