Project

General

Profile

Bug #23656 ยป 15870.patch

Administrator Admin, 2010-09-30 16:29

View differences:

typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (working copy)
if (preg_match('/^http://([[:alnum:]._-]+)//', $url, $match)) {
$redirect_domain = $match[1];
$found = false;
foreach(split(',', $this->conf['domains']) as $d) {
foreach(t3lib_div::trimExplode(',', $this->conf['domains']) as $d) {
if (preg_match('/(^|\.)/'.$d.'$', $redirect_domain)) {
$found = true;
break;
typo3/sysext/statictemplates/media/scripts/fe_adminLib.inc (working copy)
foreach ($this->conf['parseValues.'] as $theField => $theValue) {
$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
foreach ($listOfCommands as $cmd) {
$cmdParts = split('\[|\]',$cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$cmdParts = preg_split('/\[|\]/', $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$theCmd=trim($cmdParts[0]);
switch($theCmd) {
case 'int':
......
foreach ($this->conf[$this->cmdKey.'.']['evalValues.'] as $theField => $theValue) {
$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
foreach ($listOfCommands as $cmd) {
$cmdParts = split('\[|\]',$cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$cmdParts = preg_split('/\[|\]/', $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$theCmd = trim($cmdParts[0]);
switch($theCmd) {
case 'uniqueGlobal':
......
foreach ($this->conf[$this->cmdKey.'.']['evalValues.'] as $theField => $theValue) {
$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
foreach ($listOfCommands as $cmd) {
$cmdParts = split('\[|\]',$cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$cmdParts = preg_split('/\[|\]/', $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$theCmd = trim($cmdParts[0]);
switch($theCmd) {
case 'twice':
......
foreach ($this->conf['parseValues.'] as $theField => $theValue) {
$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
foreach ($listOfCommands as $cmd) {
$cmdParts = split('\[|\]',$cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$cmdParts = preg_split('/\[|\]/', $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
$theCmd = trim($cmdParts[0]);
switch($theCmd) {
case 'multiple':
    (1-1/1)