[TYPO3-core] Fix bugtracker issue 1736

Stanislas Rolland stanislas.rolland at fructifor.ca
Fri Mar 3 23:27:02 CET 2006


Need one more +1 to get rid of this little gremlin.

Stanislas

> This is a CVS patch request.
>
> Type: Bugfix
>
> Description: Make TS_CASE object and ts_parser support key value 0. When upgrading to TYPO3 4.0 and to Direct Mail 2.0, conversion of Page TSConfig category 0 to dynamic category may fail. Apply solution proposed by Martin Ficzel.
>
> Branches: TYPO3_4-0
>
> Bugtracker reference: http://bugs.typo3.org/view.php?id=1736
>
> Regards,
> Stanislas
>   
> ------------------------------------------------------------------------
>
> Index: t3lib/class.t3lib_tsparser.php
> ===================================================================
> RCS file: /cvsroot/typo3/TYPO3core/t3lib/class.t3lib_tsparser.php,v
> retrieving revision 1.9.6.1
> diff -u -r1.9.6.1 class.t3lib_tsparser.php
> --- t3lib/class.t3lib_tsparser.php	19 Jan 2006 13:58:24 -0000	1.9.6.1
> +++ t3lib/class.t3lib_tsparser.php	11 Feb 2006 19:37:16 -0000
> @@ -233,7 +233,7 @@
>  						$varL = strcspn($line,' {=<>(');		// Find object name string until we meet an operator	VER2: Added '>'!!
>  						$objStrName=trim(substr($line,0,$varL));
>  						if ($this->syntaxHighLight)	$this->regHighLight("objstr",$lineP,strlen(substr($line,$varL)));
> -						if ($objStrName)	{
> +						if (isset($objStrName)) {
>  							$r = array();
>  							if ($this->strict && eregi('[^[:alnum:]_\.-]',$objStrName,$r))	{
>  								$this->error('Line '.($this->lineNumberOffset+$this->rawP-1).': Object Name String, "'.htmlspecialchars($objStrName).'" contains invalid character "'.$r[0].'". Must be alphanumeric or one of: "_-."');
> Index: typo3/sysext/cms/tslib/class.tslib_content.php
> ===================================================================
> RCS file: /cvsroot/typo3/TYPO3core/typo3/sysext/cms/tslib/class.tslib_content.php,v
> retrieving revision 1.96.2.14
> diff -u -r1.96.2.14 class.tslib_content.php
> --- typo3/sysext/cms/tslib/class.tslib_content.php	10 Feb 2006 14:25:27 -0000	1.96.2.14
> +++ typo3/sysext/cms/tslib/class.tslib_content.php	11 Feb 2006 19:43:10 -0000
> @@ -1495,7 +1495,7 @@
>  		if ($this->checkIf($conf['if.']))	{
>  			if ($conf['setCurrent'] || $conf['setCurrent.']){$this->data[$this->currentValKey] = $this->stdWrap($conf['setCurrent'], $conf['setCurrent.']);}
>  	 		$key = $this->stdWrap($conf['key'],$conf['key.']);
> -	 		$key = $conf[$key] ? $key : 'default';
> +	 		$key = isset($conf[$key]) ? $key : 'default';
>  	 		$name = $conf[$key];
>  	 		$theValue = $this->cObjGetSingle($name,$conf[$key.'.'], $key);
>  	 		if ($conf['stdWrap.'])	{
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060303/ca518dc7/attachment.htm 


More information about the TYPO3-team-core mailing list