Changeset 5834
- Timestamp:
- 06/26/08 08:14:28 (5 months ago)
- Files:
-
- modules/branches/2.4/queues/functions.inc.php (modified) (1 diff)
- modules/branches/2.4/queues/module.xml (modified) (2 diffs)
- modules/branches/2.4/queues/page.queues.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/queues/functions.inc.php
r5652 r5834 313 313 } 314 314 $extension = $account; 315 $descr = isset($name) ? $name:'';316 $grppre = isset($prefix) ? $prefix:'';317 $alertinfo = isset($alertinfo) ? $alertinfo:'';315 $descr = isset($name) ? addslashes($name):''; 316 $grppre = isset($prefix) ? addslashes($prefix):''; 317 $alertinfo = isset($alertinfo) ? addslashes($alertinfo):''; 318 318 $joinannounce = strtolower($joinannounce) != 'none' ? $joinannounce:''; 319 319 $ringing = isset($_REQUEST['rtone']) ? $_REQUEST['rtone']:''; modules/branches/2.4/queues/module.xml
r5809 r5834 2 2 <rawname>queues</rawname> 3 3 <name>Queues</name> 4 <version>2.4.0. 7</version>4 <version>2.4.0.8</version> 5 5 <type>setup</type> 6 6 <category>Inbound Call Control</category> … … 9 9 </description> 10 10 <changelog> 11 *2.4.0.8* #2757 allow spaces and other alphanumeric characters in description 11 12 *2.4.0.7* #2604, #2707, #2843 fix mal-formed html tags, typo, Russian Translation, add oldstyle module hook 12 13 *2.4.0.6* added depends on 2.4.0 modules/branches/2.4/queues/page.queues.php
r5778 r5834 705 705 706 706 function checkQ(theForm) { 707 $queuename = theForm.name.value;708 707 var bad = "false"; 709 708 … … 721 720 } 722 721 723 if ($queuename == "") { 724 <?php echo "alert('"._("Queue name must not be blank")."')"?>; 725 bad="true"; 726 } else if (!$queuename.match('^[a-zA-Z][a-zA-Z0-9]+$')) { 727 <?php echo "alert('"._("Queue name cannot start with a number, and can only contain letters and numbers")."')"?>; 722 defaultEmptyOK = false; 723 if (!isAlphanumeric(theForm.name.value)) { 724 <?php echo "alert('"._("Queue name must not be blank and must contain only alpha-numberic characters")."')"?>; 728 725 bad="true"; 729 726 }
