File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ defmodule Phoenix.Controller do
504
504
end
505
505
end
506
506
507
- @ invalid_local_url_chars [ "\\ " , "/%" , "/\t " ]
507
+ @ invalid_local_url_chars [ "\\ " , "/%09 " , "/\t " ]
508
508
defp validate_local_url ( "//" <> _ = to ) , do: raise_invalid_url ( to )
509
509
510
510
defp validate_local_url ( "/" <> _ = to ) do
@@ -1033,7 +1033,7 @@ defmodule Phoenix.Controller do
1033
1033
defp assigns_layout ( conn , _assigns , format ) do
1034
1034
case conn . private [ :phoenix_layout ] do
1035
1035
% { ^ format => bad_value , _: good_value } when good_value != false ->
1036
- IO . warn """
1036
+ IO . warn ( """
1037
1037
conflicting layouts found. A layout has been set with format, such as:
1038
1038
1039
1039
put_layout(conn, #{ format } : #{ inspect ( bad_value ) } )
@@ -1049,7 +1049,7 @@ defmodule Phoenix.Controller do
1049
1049
to use layouts with formats:
1050
1050
1051
1051
use Phoenix.Controller, layouts: [#{ format } : #{ inspect ( bad_value ) } ]
1052
- """
1052
+ """ )
1053
1053
1054
1054
if format in layout_formats ( conn ) , do: good_value , else: false
1055
1055
You can’t perform that action at this time.
0 commit comments