|
393 | 393 | $object->phone = GETPOST('phone', 'alpha'); |
394 | 394 | $object->phone_mobile = (string) GETPOST("phone_mobile", 'alpha'); |
395 | 395 | $object->fax = GETPOST('fax', 'alpha'); |
396 | | - $object->email = trim(GETPOST('email', 'custom', 0, FILTER_SANITIZE_EMAIL)); |
| 396 | + $object->email = trim(GETPOST('email', 'email')); |
397 | 397 | $object->no_email = GETPOSTINT("no_email"); |
398 | | - $object->url = trim(GETPOST('url', 'custom', 0, FILTER_SANITIZE_URL)); |
| 398 | + if ((float) DOL_VERSION >= 23) { |
| 399 | + $object->url = GETPOST('url', 'url'); |
| 400 | + } else { |
| 401 | + $object->url = trim(GETPOST('url', 'custom', 0, FILTER_SANITIZE_URL)); |
| 402 | + } |
399 | 403 | $object->idprof1 = trim(GETPOST('idprof1', 'alphanohtml')); |
400 | 404 | $object->idprof2 = trim(GETPOST('idprof2', 'alphanohtml')); |
401 | 405 | $object->idprof3 = trim(GETPOST('idprof3', 'alphanohtml')); |
|
441 | 445 | $object->default_lang = GETPOST('default_lang'); |
442 | 446 |
|
443 | 447 | // Webservices url/key |
444 | | - $object->webservices_url = GETPOST('webservices_url', 'custom', 0, FILTER_SANITIZE_URL); |
| 448 | + if ((float) DOL_VERSION >= 23) { |
| 449 | + $object->webservices_url = GETPOST('webservices_url', 'url'); |
| 450 | + } else { |
| 451 | + $object->webservices_url = GETPOST('webservices_url', 'custom', 0, FILTER_SANITIZE_URL); |
| 452 | + } |
445 | 453 | $object->webservices_key = GETPOST('webservices_key', 'san_alpha'); |
446 | 454 |
|
447 | 455 | // Incoterms |
|
0 commit comments