This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We used to hardcode the the PID 0 to create a fake TSFE to build frontend URIs from the backend. This used to work for single domain install, but totally crash the BE module (and more) for multi-domains install. We now don't hardcode anything and instead use the respective object's PID to generate link. The result is that Newsletter is able to generate links across domains correctly.
- Loading branch information
Showing
20 changed files
with
262 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ public function setUp() | |
parent::setUp(); | ||
$this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); | ||
|
||
$this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/pages.xml'); | ||
$this->importDataSet(__DIR__ . '/Fixtures/fixtures.xml'); | ||
$this->authCode = md5(302 . '[email protected]'); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,20 +14,20 @@ | |
<a href="mailto:john@example.com">HTML entities encoded mailto link should still work</a> | ||
|
||
###unknown_field_will_be_kept### | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
[email protected] | ||
my custom value | ||
|
||
http://unknown_field_will_be_kept | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
[email protected] | ||
my custom value | ||
|
||
https://unknown_field_will_be_kept | ||
https://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
https://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
https://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
https://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
[email protected] | ||
my custom value | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,16 @@ should be injected [1] this custom link should be injected [2] this | |
link should be injected, and marker substituted [3] mailto link should | ||
still work HTML entities encoded mailto link should still work [4] | ||
###unknown_field_will_be_kept### | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
[email protected] my custom value | ||
http://unknown_field_will_be_kept | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
[email protected] my custom value | ||
https://unknown_field_will_be_kept | ||
https://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
https://example.com/index.php?id=1&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
https://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=show&tx_newsletter_p%5Bcontroller%5D=Email | ||
https://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bc%5D=d41d8cd98f00b204e9800998ecf8427e&tx_newsletter_p%5Baction%5D=unsubscribe&tx_newsletter_p%5Bcontroller%5D=Email | ||
[email protected] my custom value boolean_false= | ||
boolean_true=true-ish integer_false= integer_true=true-ish | ||
string_false= string_true=true-ish boolean_false=false-ish | ||
|
Oops, something went wrong.