summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-13 05:47:47 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-13 05:47:47 +0000
commitabba9b3b3488f1f795d2dd46c8dc780f0faab643 (patch)
tree3caa3aa6a6259f6d42600dea2f9195bbaf004d40
parent83e9590a14e1d646bf25be39cee98ba6274ffca9 (diff)
downloadbrdo-abba9b3b3488f1f795d2dd46c8dc780f0faab643.tar.gz
brdo-abba9b3b3488f1f795d2dd46c8dc780f0faab643.tar.bz2
- Patch #725734 by casey, David_Rothstein, recidive, jpmckinney, aspilicious: overlay doesn't escape any page titles (residual cleanup).
-rw-r--r--modules/overlay/overlay-parent.js2
-rw-r--r--modules/overlay/overlay.module2
-rw-r--r--modules/toolbar/toolbar.module2
3 files changed, 2 insertions, 4 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js
index 33cc598fc..3007fe088 100644
--- a/modules/overlay/overlay-parent.js
+++ b/modules/overlay/overlay-parent.js
@@ -275,7 +275,7 @@ Drupal.overlay.loadChild = function (event) {
this.activeFrame = $(iframe)
.addClass('overlay-active')
// Add a title attribute to the iframe for accessibility.
- .attr('title', Drupal.t('@title dialog', { '@title': iframeWindow.document.title }));;
+ .attr('title', Drupal.t('@title dialog', { '@title': iframeWindow.jQuery('#overlay-title').text() }));
this.inactiveFrame = event.data.sibling;
// Load an empty document into the inactive iframe.
diff --git a/modules/overlay/overlay.module b/modules/overlay/overlay.module
index 2b2b31124..fa5e76af0 100644
--- a/modules/overlay/overlay.module
+++ b/modules/overlay/overlay.module
@@ -285,8 +285,6 @@ function overlay_preprocess_html(&$variables) {
if (overlay_get_mode() == 'child') {
// Add overlay class, so themes can react to being displayed in the overlay.
$variables['classes_array'][] = 'overlay';
- // Do not include site name or slogan in the overlay title.
- $variables['head_title'] = drupal_get_title();
}
}
diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module
index fa0782a7e..348c0a29e 100644
--- a/modules/toolbar/toolbar.module
+++ b/modules/toolbar/toolbar.module
@@ -309,7 +309,7 @@ function toolbar_menu_navigation_links($tree) {
$link = $item['link']['localized_options'];
$link['href'] = $item['link']['href'];
// Add icon placeholder.
- $link['title'] = '<span class="icon"></span>' . $item['link']['title'];
+ $link['title'] = '<span class="icon"></span>' . check_plain($item['link']['title']);
// Add admin link ID.
$link['attributes'] = array('id' => 'toolbar-link-' . $id);
if (!empty($item['link']['description'])) {