Skip to content

Commit

Permalink
Avoid inserting new inbound route when editing one with + sign and ch…
Browse files Browse the repository at this point in the history
…anging the did number
  • Loading branch information
Nicolás committed Nov 4, 2024
1 parent b921dc5 commit c2d693f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/page.did.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
//Copyright (C) 2004 Coalescent Systems Inc. ([email protected])

if (!defined('ISSABELPBX_IS_AUTH')) { die('No direct script access allowed'); }

if(isset($_GET['extdisplay'])) {
$_REQUEST['extdisplay']=$_GET['extdisplay'];
}

$action = isset($_REQUEST['action'])?$_REQUEST['action']:'';
$extdisplay= htmlspecialchars(isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:'');
$extdisplay = isset($_GET['extdisplay'])?urldecode($_GET['extdisplay']):'';
$old_extdisplay = $extdisplay;
$dispnum = 'did'; //used for switch on config.php
$account = isset($_REQUEST['account'])?$_REQUEST['account']:'';
Expand All @@ -29,7 +34,7 @@

if (isset($_REQUEST['extension']) && isset($_REQUEST['cidnum'])) {
$extdisplay = $_REQUEST['extension']."/".$_REQUEST['cidnum'];
$old_extdisplay = $_REQUEST['extension'];
//$old_extdisplay = $_REQUEST['extension'];
}


Expand Down

0 comments on commit c2d693f

Please sign in to comment.