CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #37768

Template-File not found with wrong file-encoding

Added by Mario Näther 12 months ago. Updated 12 months ago.

Status:Resolved Start date:2012-06-05
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
Votes: 0

Description

My template file (Attachment) has an crasy encoding and the htmlcode is completly in one line!

The follow code for checking if it an template or an filepath in "Tx_Formhandler_UtilityFuncs::readTemplateFile()" dosn't work with my template file.

if (strpos($templateFile, "\n") === FALSE) {
...
}

should be the if-condition look like this??

if (stristr($templateFile, '###TEMPLATE_') === FALSE) {
...
}

changeAddress.tmpl2.html (3.1 kB) Mario Näther, 2012-06-05 16:32

Associated revisions

Revision 63259
Added by Reinhard Führicht 12 months ago

Fixed check if template was already parsed (fixes #37768)

Revision 63259
Added by Reinhard Führicht 12 months ago

Fixed check if template was already parsed (fixes #37768)

History

Updated by Reinhard Führicht 12 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r63259.

Updated by Mario Näther 12 months ago

hi,
should you change the if-condition at line Tx_Formhandler_UtilityFuncs:148, too?
or move the check in a own PHP method ;)

mfg mario

Also available in: Atom PDF