Project

General

Profile

Actions

Feature #14924

closed

Allow different referers for formmails and front end data submission

Added by Marco Geweke almost 19 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2005-08-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

When sending a formmail TYPO3 checks if the referer hostname is equal to the TYPO3_HOST_ONLY environment variable. You can switch this off completely by setting TYPO3_CONF_VARS['SYS']['doNotCheckReferer'].

I added an option to let TYPO3 accept specific other hosts as referer. I use this to send a mail through a portlet on another server which includes a part of a TYPO3 page with a form. Through this feature I don't have to deactivate the referer check totally.

To realize this, i patched tslib_fe.php.

To set the accepted hostnames, simply set up a comma separated list of them in localconf.php:

TYPO3_CONF_VARS['SYS']['trustedReferers'] = 'www.example1.org,www.example2.org';
(issue imported from #M1373)


Files

class.tslib_fe.php.diff (2.54 KB) class.tslib_fe.php.diff Administrator Admin, 2005-08-12 13:39

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #14344: doNotCheckReferer, perhaps not a bugClosedJan-Erik Revsbech2004-10-01

Actions
Actions

Also available in: Atom PDF