Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ac637c3f
Commit
ac637c3f
authored
Jul 15, 2012
by
tamasd
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Issue
#1461236
by Yorirou: Fixed Trailing space in the menu path could cause menu rebuild failure.
parent
422289b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/views_plugin_display_page.inc
View file @
ac637c3f
...
@@ -552,9 +552,8 @@ function options_validate(&$form, &$form_state) {
...
@@ -552,9 +552,8 @@ function options_validate(&$form, &$form_state) {
form_error
(
$form
[
'path'
],
t
(
'"%" may not be used for the first segment of a path.'
));
form_error
(
$form
[
'path'
],
t
(
'"%" may not be used for the first segment of a path.'
));
}
}
// automatically remove '/' from path.
// automatically remove '/' and trailing whitespace from path.
$form_state
[
'values'
][
'path'
]
=
trim
(
$form_state
[
'values'
][
'path'
],
'/'
);
$form_state
[
'values'
][
'path'
]
=
trim
(
$form_state
[
'values'
][
'path'
],
'/ '
);
break
;
break
;
case
'menu'
:
case
'menu'
:
$path
=
$this
->
get_option
(
'path'
);
$path
=
$this
->
get_option
(
'path'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment