@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $fieldModelList = $this->record->getModule()->getFields(); |
| 50 | 50 | $viewName = $this->record->isNew() ? 'Create' : 'Edit'; |
| 51 | 51 | $requestKeys = $request->getAllRaw(); |
| 52 | - unset($requestKeys['module'],$requestKeys['action'],$requestKeys['record']); |
|
| 52 | + unset($requestKeys['module'], $requestKeys['action'], $requestKeys['record']); |
|
| 53 | 53 | if (empty($requestKeys)) { |
| 54 | 54 | throw new \Api\Core\Exception('No input data', 406); |
| 55 | 55 | } |
@@ -131,10 +131,10 @@ |
||
| 131 | 131 | ['Text', 'NotSame', 'ę€ółśążźćń23{}":?>><>?:"{}+_)(*&^%$#@!) <svg/onabort=alert(3)// <svg/onload=alert(1) onfocus=alert(2)//', 'ę€ółśążźćń23{}":?>><>?:"{}+_)(*&^%$#@!) <svg/onabort=alert(3)// <svg/onload=alert(1) onfocus=alert(2)//', 'Sample number should be purified', \App\Exceptions\IllegalValue::class], |
| 132 | 132 | ['Default', 'Same', 'Test-text-string-for-purifier', 'Test-text-string-for-purifier', 'Sample number should be unchanged', null], |
| 133 | 133 | ['Default', 'NotSame', 'ę€ółśążźćń23{}":?>><>?:"{}+_)(*&^%$#@!) <svg/onabort=alert(3)// <svg/onload=alert(1) onfocus=alert(2)//', 'ę€ółśążźćń23{}":?>><>?:"{}+_)(*&^%$#@!) <svg/onabort=alert(3)// <svg/onload=alert(1) onfocus=alert(2)//', 'Sample number should be purified', \App\Exceptions\IllegalValue::class], |
| 134 | - ['MailId', 'Same', '[email protected]> (added by [email protected])', '<[email protected]> (added by [email protected])', 'Sample text should be unchanged', null], |
|
| 135 | - ['MailId', 'Same', '30.123.12.JavaMail."admin.azure"@A-PROXY01', '<30.123.12.JavaMail."admin.azure"@A-PROXY01>', 'Sample text should be unchanged', null], |
|
| 136 | - ['MailId', 'Same', '[email protected]', '<[email protected]>', 'Sample text should be unchanged', null], |
|
| 137 | - ['MailId', 'Same', '[email protected]', ' <[email protected]', 'Sample text should be unchanged', null], |
|
| 134 | + ['MailId', 'Same', '[email protected]> (added by [email protected])', '<[email protected]> (added by [email protected])', 'Sample text should be unchanged', null], |
|
| 135 | + ['MailId', 'Same', '30.123.12.JavaMail."admin.azure"@A-PROXY01', '<30.123.12.JavaMail."admin.azure"@A-PROXY01>', 'Sample text should be unchanged', null], |
|
| 136 | + ['MailId', 'Same', '[email protected]', '<[email protected]>', 'Sample text should be unchanged', null], |
|
| 137 | + ['MailId', 'Same', '[email protected]', ' <[email protected]', 'Sample text should be unchanged', null], |
|
| 138 | 138 | [\App\Purifier::PATH, 'NotSame', '../Test', '../Test', 'Path should be discarded', \App\Exceptions\IllegalValue::class], |
| 139 | 139 | [\App\Purifier::PATH, 'Same', '/Test/test', '/Test/test', 'Path should be unchanged', null], |
| 140 | 140 | ]; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | public function process(): int |
| 51 | 51 | { |
| 52 | 52 | $dataReader = (new \App\Db\Query())->from('dbo.FIRMA') |
| 53 | - ->select(['dbo.FIRMA.ID_FIRMY', 'NAZWA', 'NIP', 'REGON', 'WOJEWODZTWO', 'POWIAT', 'GMINA', 'MIEJSCOWOSC', |
|
| 53 | + ->select(['dbo.FIRMA.ID_FIRMY', 'NAZWA', 'NIP', 'REGON', 'WOJEWODZTWO', 'POWIAT', 'GMINA', 'MIEJSCOWOSC', |
|
| 54 | 54 | 'POCZTA', 'KOD_POCZTOWY', 'ULICA', 'NR_DOMU', 'NR_LOKALU', 'SKRYTKA', 'E_MAIL', 'TELEFON', 'SYM_KRAJU']) |
| 55 | 55 | ->leftJoin('dbo.ADRESY_FIRMY', 'dbo.FIRMA.ID_ADRESU_DOMYSLNEGO = dbo.ADRESY_FIRMY.ID_ADRESY_FIRMY') |
| 56 | 56 | ->where(['>', 'dbo.FIRMA.ID_FIRMY', 0])->createCommand($this->controller->getDb())->query(); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public function process(): int |
| 42 | 42 | { |
| 43 | 43 | $query = (new \App\Db\Query())->select([ |
| 44 | - 'ID_DOKUMENTU_HANDLOWEGO', 'ID_FIRMY', 'ID_KONTRAHENTA', 'ID_DOK_ORYGINALNEGO', 'ID_UZYTKOWNIKA', |
|
| 44 | + 'ID_DOKUMENTU_HANDLOWEGO', 'ID_FIRMY', 'ID_KONTRAHENTA', 'ID_DOK_ORYGINALNEGO', 'ID_UZYTKOWNIKA', |
|
| 45 | 45 | 'NUMER', 'FORMA_PLATNOSCI', 'UWAGI', 'KONTRAHENT_NAZWA', 'WARTOSC_NETTO', 'WARTOSC_BRUTTO', 'DOK_KOREKTY', |
| 46 | 46 | 'issueTime' => 'cast (dbo.DOKUMENT_HANDLOWY.DATA_WYSTAWIENIA - 36163 as datetime)', |
| 47 | 47 | 'saleDate' => 'cast (dbo.DOKUMENT_HANDLOWY.DATA_SPRZEDAZY - 36163 as datetime)', |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $params = []; |
| 71 | 71 | switch ($name) { |
| 72 | 72 | case 'mail_account': |
| 73 | - $params = ['column' => $name, 'name' => $name, 'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'defaultvalue' => '0']; |
|
| 73 | + $params = ['column' => $name, 'name' => $name, 'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'defaultvalue' => '0']; |
|
| 74 | 74 | $params['uitype'] = 10; |
| 75 | 75 | $params['label'] = 'FL_MAIL_ACCOUNT'; |
| 76 | 76 | $params['referenceList'] = ['MailAccount']; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public $baseIndex = 'id'; |
| 18 | 18 | |
| 19 | 19 | /** {@inheritdoc} */ |
| 20 | - public $listFields = ['name' => 'FL_SUBJECT', 'status' => 'FL_ACTIVE', 'imap_host' => 'FL_IMAP_HOST']; |
|
| 20 | + public $listFields = ['name' => 'FL_SUBJECT', 'status' => 'FL_ACTIVE', 'imap_host' => 'FL_IMAP_HOST']; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Function to get the url for Create view of the module. |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $key = $this->api->request->getByType('action', \App\Purifier::ALNUM); |
| 25 | 25 | $dbKey = \App\Encryption::getInstance()->encrypt($key); |
| 26 | 26 | |
| 27 | - $query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1, 'api_key' => $dbKey]); |
|
| 27 | + $query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1, 'api_key' => $dbKey]); |
|
| 28 | 28 | if ($row = $query->one()) { |
| 29 | 29 | $row['id'] = (int) $row['id']; |
| 30 | 30 | $this->api->app = $row; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * @see https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent |
| 35 | 35 | */ |
| 36 | 36 | protected $scopes; |
| 37 | - protected $scopesForAction = ['MailAccount' => ['openid', 'https://outlook.office.com/IMAP.AccessAsUser.All', 'offline_access', 'email', 'https://outlook.office.com/SMTP.Send']]; |
|
| 37 | + protected $scopesForAction = ['MailAccount' => ['openid', 'https://outlook.office.com/IMAP.AccessAsUser.All', 'offline_access', 'email', 'https://outlook.office.com/SMTP.Send']]; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @var string If set, this will be sent to google as the "access_type" parameter. |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | public static function decodeCustomTag(string $text): string |
| 110 | 110 | { |
| 111 | 111 | if (false !== strpos($text, '<yetiforce')) { |
| 112 | - $text = preg_replace_callback('/<yetiforce\s(.*)><\/yetiforce>/', function (array $matches) { |
|
| 112 | + $text = preg_replace_callback('/<yetiforce\s(.*)><\/yetiforce>/', function(array $matches) { |
|
| 113 | 113 | $attributes = \App\TextUtils::getTagAttributes($matches[0]); |
| 114 | 114 | $return = ''; |
| 115 | 115 | if (!empty($attributes['type']) && !empty($attributes['crm-id'])) { |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | ); |
| 149 | 149 | return \preg_replace_callback( |
| 150 | 150 | static::ROW_REGEX, |
| 151 | - function (array $matches) { |
|
| 151 | + function(array $matches) { |
|
| 152 | 152 | $type = $matches[1]; |
| 153 | 153 | $id = (int) $matches[2]; |
| 154 | 154 | if (self::OWNER_SEPARATOR === $type) { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | { |
| 207 | 207 | return \preg_replace_callback( |
| 208 | 208 | "/<a\\s+[^>]*data-id=(?:\"|')(.)(\\d+)(?:\"|')[^>]*>[^<]+<\\/a>/i", |
| 209 | - function (array $matches) { |
|
| 209 | + function(array $matches) { |
|
| 210 | 210 | $type = $matches[1]; |
| 211 | 211 | $recordName = strip_tags($matches[0]); |
| 212 | 212 | return "{$type}{$type}{$matches[2]}_{$recordName}{$type}{$type}"; |