Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
V
views
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
3
Merge Requests
3
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
views
Commits
9176d082
Commit
9176d082
authored
Mar 06, 2007
by
merlinofchaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#119463
: Double check_plain on breadcrumbs for Views' titles.
parent
3b218b09
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
CHANGELOG.txt
CHANGELOG.txt
+1
-0
views.module
views.module
+3
-3
views_rss.module
views_rss.module
+2
-2
views_ui.module
views_ui.module
+2
-2
No files found.
CHANGELOG.txt
View file @
9176d082
...
...
@@ -124,6 +124,7 @@ Views 4.7.x-dev
o #113332: NULL entries for vocabulary summaries with nodes without terms.
o #119082: Fixed a problem with view titles on the admin page.
o #119921: Recent comments block had incorrect filter, causing nodes with just 1 comment not to show up.
o #119463: Double check_plain on breadcrumbs for Views' titles.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
...
...
views.module
View file @
9176d082
...
...
@@ -483,7 +483,7 @@ function _views_create_menu_item(&$items, $view, $path, $local_task_type = MENU_
global
$user
;
$roles
=
array_keys
(
$user
->
roles
);
}
$title
=
views_get_title
(
$view
,
'menu'
);
$title
=
filter_xss_admin
(
views_get_title
(
$view
,
'menu'
)
);
$type
=
_views_menu_type
(
$view
);
if
(
$type
==
MENU_LOCAL_TASK
||
$type
==
MENU_DEFAULT_LOCAL_TASK
)
{
$weight
=
$view
->
menu_tab_weight
;
...
...
@@ -1579,7 +1579,7 @@ function views_set_breadcrumb($view) {
$where
=
1
;
foreach
(
$view
->
args
as
$level
=>
$arg
)
{
if
(
$view
->
argument
[
$level
][
'argdefault'
]
!=
1
)
{
$breadcrumb
[]
=
l
(
views_get_title
(
$view
,
'page'
,
$args
),
$url
);
$breadcrumb
[]
=
l
(
filter_xss_admin
(
views_get_title
(
$view
,
'page'
,
$args
)),
$url
,
NULL
,
NULL
,
NULL
,
NULL
,
TRUE
);
// For next round.
}
$args
[]
=
$arg
;
...
...
@@ -1620,7 +1620,7 @@ function theme_views_view($view, $type, $nodes, $level = NULL, $args = NULL) {
$num_nodes
=
count
(
$nodes
);
if
(
$type
==
'page'
)
{
drupal_set_title
(
views_get_title
(
$view
,
'page'
));
drupal_set_title
(
filter_xss_admin
(
views_get_title
(
$view
,
'page'
)
));
views_set_breadcrumb
(
$view
);
}
...
...
views_rss.module
View file @
9176d082
...
...
@@ -105,7 +105,7 @@ function views_rss_views_feed_argument($op, &$view, $arg, $argdata = NULL) {
else
if
(
$op
==
'post_view'
)
{
$args
=
views_post_view_make_args
(
$view
,
$arg
,
'feed'
);
$url
=
views_get_url
(
$view
,
$args
);
$title
=
views_get_title
(
$view
,
'page'
,
$args
);
$title
=
filter_xss_admin
(
views_get_title
(
$view
,
'page'
,
$args
)
);
if
(
$view
->
used_filters
)
{
$filters
=
drupal_query_string_encode
(
$view
->
used_filters
);
...
...
@@ -131,7 +131,7 @@ function theme_views_rss_feed($view, $nodes, $type) {
global
$base_url
;
$channel
=
array
(
'title'
=>
views_get_title
(
$view
,
'page'
),
'title'
=>
filter_xss_admin
(
views_get_title
(
$view
,
'page'
)
),
'link'
=>
url
(
$view
->
feed_url
?
$view
->
feed_url
:
$view
->
real_url
,
NULL
,
NULL
,
true
),
'description'
=>
$view
->
description
,
);
...
...
views_ui.module
View file @
9176d082
...
...
@@ -209,7 +209,7 @@ function views_ui_admin_page() {
$items
[]
=
array
(
$view
->
name
,
views_get_title
(
$view
,
'admin'
),
filter_xss_admin
(
views_get_title
(
$view
,
'admin'
)
),
$view
->
description
,
implode
(
', '
,
$provides
),
$url
,
...
...
@@ -281,7 +281,7 @@ function views_ui_admin_page() {
$links
[]
=
l
(
t
(
'enable'
),
"admin/views/enable/
$view->name
"
);
}
$items
[]
=
array
(
$view
->
name
,
views_get_title
(
$view
,
'menu'
),
$view
->
description
,
implode
(
', '
,
$provides
),
$url
,
$status
,
theme
(
'links'
,
$links
));
$items
[]
=
array
(
$view
->
name
,
filter_xss_admin
(
views_get_title
(
$view
,
'menu'
)
),
$view
->
description
,
implode
(
', '
,
$provides
),
$url
,
$status
,
theme
(
'links'
,
$links
));
}
if
(
$items
)
{
...
...
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