Skip to content

Commit

Permalink
Merge pull request #1228 from superdesk/SWP-2206
Browse files Browse the repository at this point in the history
Swp 2206
  • Loading branch information
IvanJelicSF committed Jun 8, 2023
2 parents 7160081 + bde4dbc commit e526a0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions etc/docker/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ server {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
request_terminate_timeout 180;
}

error_log /var/log/nginx/publisher_error.log;
Expand Down
7 changes: 3 additions & 4 deletions src/SWP/Bundle/RedirectRouteBundle/Form/RedirectRouteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Constraints\Regex;
use Symfony\Component\Validator\Constraints\Url;

class RedirectRouteType extends AbstractType
Expand All @@ -34,13 +35,11 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'required' => true,
'constraints' => [
new Length(['min' => 1]),
new Regex('/^\//m')
],
])
->add('uri', UrlType::class, [
'required' => false,
'constraints' => [
new Url(),
],
'required' => false
])
->add('permanent', CheckboxType::class)
;
Expand Down

0 comments on commit e526a0b

Please sign in to comment.