security update for uuid xmlsitemap file_field_path
This commit is contained in:
@@ -4,12 +4,10 @@ package = XML sitemap
|
||||
core = 7.x
|
||||
dependencies[] = xmlsitemap
|
||||
dependencies[] = ctools
|
||||
files[] = xmlsitemap_modal.module
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-05-25
|
||||
version = "7.x-2.3"
|
||||
; Information added by Drupal.org packaging script on 2018-10-09
|
||||
version = "7.x-2.6"
|
||||
core = "7.x"
|
||||
project = "xmlsitemap"
|
||||
datestamp = "1464191061"
|
||||
|
||||
datestamp = "1539120486"
|
||||
|
@@ -1,11 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Main file for XML sitemap Modal.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_menu_alter().
|
||||
*/
|
||||
function xmlsitemap_modal_menu_alter(&$items) {
|
||||
foreach ($items as $path => $item) {
|
||||
if (!empty($item['modal']) && strpos($path, '%ctools_js') === FALSE && $item['page callback'] ==='drupal_get_form') {
|
||||
if (!empty($item['modal']) && strpos($path, '%ctools_js') === FALSE && $item['page callback'] === 'drupal_get_form') {
|
||||
$items["$path/%ctools_js"] = $item;
|
||||
$items["$path/%ctools_js"]['page callback'] = 'xmlsitemap_modal_get_form';
|
||||
$items["$path/%ctools_js"]['page arguments'][] = substr_count($path, '/') + 1;
|
||||
@@ -73,7 +78,7 @@ function xmlsitemap_modal_xmlsitemap_operation_link_alter(array &$link) {
|
||||
$link['href'] = trim($link['href'], '/');
|
||||
}
|
||||
|
||||
// @todo Remove when http://drupal.org/node/565808 is fixed.
|
||||
// @todo Remove when https://www.drupal.org/node/565808 is fixed.
|
||||
if (substr($link['href'], -4) === 'nojs') {
|
||||
$link['href'] .= '/';
|
||||
}
|
||||
|
Reference in New Issue
Block a user