Changeset 3064

Show
Ignore:
Timestamp:
11/13/06 16:15:18 (2 years ago)
Author:
p_lindheimer
Message:

fixed #1323 - replacing <> with () so that the internal callerid is not corrupdted. This should be restricted in a javascript as well, but for now ...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/modules/core/functions.inc.php

    r3044 r3064  
    10941094        // then add directdid to the insert command. 
    10951095        // 
     1096        // Clean replace any <> with () in display name - should have javascript stopping this but ... 
     1097        // 
    10961098        $directdid = preg_replace("/[^0-9._XxNnZz\[\]\-]/" ,"", trim($directdid)); 
     1099        $name = preg_replace(array('/</','/>/'), array('(',')'), trim($name)); 
    10971100         
    10981101        //insert into users table 
     
    23212324                        $currentcomponent->addjsfunc('onsubmit()', "\treturn checkBlankUserPwd();\n", 9); 
    23222325                } 
    2323                 $currentcomponent->addguielem($section, new gui_textbox('name', $name, 'Display Name', 'The caller id name for calls from this user will be set to this name.', '!isCallerID()', $msgInvalidOutboundCID, false)); 
     2326                $currentcomponent->addguielem($section, new gui_textbox('name', $name, 'Display Name', 'The caller id name for calls from this user will be set to this name. Only enter the name, NOT the number.', '!isCallerID()', $msgInvalidOutboundCID, false)); 
    23242327                 
    23252328                $section = 'Extension Options'; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads