Skip to content

Commit

Permalink
csrf to infuse check be_link.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis authored Feb 12, 2024
1 parent eeced07 commit 858f2e2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/manager/lib/yform/value/be_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,7 @@ public static function isArticleInUse(rex_extension_point $ep)
foreach ($items as $item) {
$sqlData = \rex_sql::factory();
$sqlData->setQuery('SELECT `name` FROM `' . \rex_yform_manager_table::table() . '` WHERE `table_name` = "' . $tableName . '"');

$url = \rex_url::backendController([
'page' => 'yform/manager/data_edit',
'table_name' => $tableName,
'data_id' => $item['id'],
'func' => 'edit',
]);
$url = rex_yform_manager::url($tableName, $item['id']);
$messages .= '<li><a href="' . $url . '">' . $sqlData->getValue('name') . ' [id=' . $item['id'] . ']</a></li>';
}
}
Expand Down

0 comments on commit 858f2e2

Please sign in to comment.