|
Title: messy quoting handling Post by: rsd 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. |