Download the PHP package jweiland/mail-link-fixer without Composer
On this page you can find all versions of the php package jweiland/mail-link-fixer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jweiland/mail-link-fixer
More information about jweiland/mail-link-fixer
Files in jweiland/mail-link-fixer
Package mail-link-fixer
Short Description Mail Link Fixer (EXT:mail_link_fixer) - CLI command to fix javascript:linkTo_UnCryptMailto() hrefs in RTE Fields
License GPL-2.0-or-later
Homepage https://jweiland.net
Informations about the package mail-link-fixer
TYPO3 Extension mail_link_fixer
This extension provides a CLI command to migrate legacy javascript:linkTo_UnCryptMailto() links in the database into standard mailto: links, allowing modern TYPO3 versions (v12/v13) to natively handle frontend spam protection.
1 Features
- Safely reverses legacy Caesar-cipher encrypted email links directly in the database.
- Rebuilds broken
<a href="javascript:...">tags into standard<a href="mailto:...">tags. - Dynamically scans the global TYPO3 TCA to find and process all Rich Text (RTE) and standard text fields.
- Includes a robust
--dry-runmode to preview changes without altering database records.
2 Usage
2.1 Installation
Installation using Composer
The recommended way to install the extension is using Composer.
Run the following command within your Composer based TYPO3 project:
2.2 Command Usage
The extension registers the following CLI command via the TYPO3 Console:
Options
| Option | Short | Description |
|---|---|---|
--dry-run |
Preview changes without writing to the database. | |
--uid=<UID> |
Process only the tt_content record with this UID. |
|
--table=<table> |
-t |
Specific table to process (default: tt_content). |
--field=<field> |
-f |
Specific field to process (default: bodytext). |
--all-rte |
Scan all tables and fields in TCA configured with enableRichtext=true. |
Examples
Preview all changes without touching the database:
Fix a single record by UID:
Process a specific table and field:
Scan and fix all RTE fields across the entire TCA:
Combine --all-rte with --dry-run for a safe full-site preview:
Add -v for verbose output that shows the number of replacements per record: