Changeset 8115
- Timestamp:
- 08/23/09 23:55:25 (2 years ago)
- Files:
-
- modules/branches/2.6/core/functions.inc.php (modified) (3 diffs)
- modules/branches/2.6/core/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/core/functions.inc.php
r8112 r8115 5205 5205 $tmparr = array(); 5206 5206 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => 'isEmpty() && !confirm("'.$msgConfirmSecret.'")', 'failvalidationmsg' => $msgInvalidSecret); 5207 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => '(isEmpty() && !confirm("'.$msgConfirmSecret.'")) || (!isEmpty() && weakSecret())', 'failvalidationmsg' => $msgInvalidSecret); 5207 5208 $tmparr['notransfer'] = array('value' => 'yes', 'level' => 1); 5208 5209 $tmparr['context'] = array('value' => 'from-internal', 'level' => 1); … … 5223 5224 // sip 5224 5225 $tmparr = array(); 5225 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => ' isEmpty() && !confirm("'.$msgConfirmSecret.'")', 'failvalidationmsg' => $msgInvalidSecret);5226 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => '(isEmpty() && !confirm("'.$msgConfirmSecret.'")) || (!isEmpty() && weakSecret())', 'failvalidationmsg' => $msgInvalidSecret); 5226 5227 $tmparr['dtmfmode'] = array('value' => 'rfc2833', 'level' => 0, 'jsvalidation' => 'isEmpty()', 'failvalidationmsg' => $msgInvalidDTMFMODE ); 5227 5228 $tmparr['canreinvite'] = array('value' => 'no', 'level' => 1); … … 5398 5399 $devoptjs = isset($devoptarr['jsvalidation']) ? $devoptarr['jsvalidation'] : ''; 5399 5400 $devoptfailmsg = isset($devoptarr['failvalidationmsg']) ? $devoptarr['failvalidationmsg'] : ''; 5401 5402 // We compare the existing secret against what might be in the put to detect changes when validating 5403 if ($devopt == "secret") { 5404 $currentcomponent->addguielem($section, new gui_hidden($devopname . "_origional", $devoptcurrent), 4); 5405 } 5400 5406 5401 5407 if ( $devoptarr['level'] == 0 || ($extdisplay && $devoptarr['level'] == 1) ) { // editing to show advanced as well modules/branches/2.6/core/module.xml
r8112 r8115 10 10 <canuninstall>no</canuninstall> 11 11 <changelog> 12 *2.6.0beta1.4* #3075, #3501, #3636 12 *2.6.0beta1.4* #3075, #3501, #3636, #3581, #3266 13 13 *2.6.0beta1.3* trunk tab improvements 14 14 *2.6.0beta1.2* added more sql escape in devices
