Merged in bugfix/HOR-4547 (pull request #6464)
HOR-4547 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -450,7 +450,7 @@ function custom_ldap_explode_dn($dn)
|
||||
unset($result["count"]);
|
||||
|
||||
foreach ($result as $key => $value) {
|
||||
$result[$key] = addcslashes(preg_replace("/\\\([0-9A-Fa-f]{2})/", function ($m) {
|
||||
$result[$key] = addcslashes(preg_replace_callback("/\\\([0-9A-Fa-f]{2})/", function ($m) {
|
||||
return chr(hexdec($m[1]));
|
||||
}, $value), '<>,"');
|
||||
}
|
||||
|
||||
@@ -160,7 +160,8 @@ switch ($_POST['action']) {
|
||||
$start = isset($_REQUEST['start']) ? $_REQUEST['start'] : 0;
|
||||
$limit = isset($_REQUEST['limit']) ? $_REQUEST['limit'] : $limit_size;
|
||||
$filter = isset($_REQUEST['textFilter']) ? $_REQUEST['textFilter'] : '';
|
||||
$groupUid = $inputFilter->quoteSmart($_REQUEST['gUID'], Propel::getConnection("workflow")->getResource());
|
||||
$connection = Propel::getConnection("workflow")->getResource();
|
||||
$groupUid = $inputFilter->quoteSmart($_REQUEST['gUID'], $connection);
|
||||
|
||||
$groupUsers = new GroupUser();
|
||||
$type = $_POST['action'] === 'assignedMembers' ? 'USERS' : 'AVAILABLE-USERS';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
class AdditionalTablesConsolidated extends AdditionalTables
|
||||
{
|
||||
public function createPropelClasses($sTableName, $sClassName, $aFields, $sAddTabUid)
|
||||
public function createPropelClasses($sTableName, $sClassName, $aFields, $sAddTabUid, $connection = 'workflow')
|
||||
{
|
||||
try {
|
||||
$aTypes = array('VARCHAR' => 'string',
|
||||
|
||||
@@ -388,8 +388,9 @@ if ($action == "uploadFileNewProcess") {
|
||||
$allowedExtensions = array ($processFileType
|
||||
);
|
||||
$allowedExtensions = array ('pm');
|
||||
if (! in_array( end( explode( ".", $_FILES['PROCESS_FILENAME']['name'] ) ), $allowedExtensions )) {
|
||||
throw new Exception( G::LoadTranslation( "ID_FILE_UPLOAD_INCORRECT_EXTENSION" ) );
|
||||
$explode = explode(".", $_FILES['PROCESS_FILENAME']['name']);
|
||||
if (!in_array(end($explode), $allowedExtensions)) {
|
||||
throw new Exception(G::LoadTranslation("ID_FILE_UPLOAD_INCORRECT_EXTENSION"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ try {
|
||||
$oStepTrigger = new StepTrigger();
|
||||
$oStepTrigger->removeTrigger( $_POST['TRI_UID'] );
|
||||
|
||||
$result = new stdClass();
|
||||
$result->success = true;
|
||||
$result->msg = G::LoadTranslation( 'ID_TRIGGERS_REMOVED' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user