]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Admin/Item/Delete.php
Some removed escapeTags calls
[friendica.git] / src / Module / Admin / Item / Delete.php
index e755d9eedce803c86c9c8cfcbb4cc9636cc8baf0..7afc3b09038e2c888d6d218fc183a6467a9993d1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -40,7 +40,7 @@ class Delete extends BaseAdmin
                self::checkFormSecurityTokenRedirectOnError('/admin/item/delete', 'admin_deleteitem');
 
                if (!empty($_POST['page_deleteitem_submit'])) {
-                       $guid = trim(Strings::escapeTags($_POST['deleteitemguid']));
+                       $guid = trim($_POST['deleteitemguid']);
                        // The GUID should not include a "/", so if there is one, we got an URL
                        // and the last part of it is most likely the GUID.
                        if (strpos($guid, '/')) {
@@ -67,7 +67,7 @@ class Delete extends BaseAdmin
                        '$submit' => DI::l10n()->t('Delete this Item'),
                        '$intro1' => DI::l10n()->t('On this page you can delete an item from your node. If the item is a top level posting, the entire thread will be deleted.'),
                        '$intro2' => DI::l10n()->t('You need to know the GUID of the item. You can find it e.g. by looking at the display URL. The last part of http://example.com/display/123456 is the GUID, here 123456.'),
-                       '$deleteitemguid' => ['deleteitemguid', DI::l10n()->t("GUID"), '', DI::l10n()->t("The GUID of the item you want to delete."), 'required', 'autofocus'],
+                       '$deleteitemguid' => ['deleteitemguid', DI::l10n()->t("GUID"), '', DI::l10n()->t("The GUID of the item you want to delete."), DI::l10n()->t('Required'), 'autofocus'],
                        '$form_security_token' => self::getFormSecurityToken("admin_deleteitem")
                ]);
        }