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

Bug #37689

incomplete filename replacements

Added by Bernd Wilke 12 months ago. Updated 11 months ago.

Status:Resolved Start date:2012-06-01
Priority:Must have Due date:
Assignee:Reinhard Führicht % Done:

100%

Category:-
Target version:v1.4
Votes: 0

Description

1. replaces on filename works only up to the first dot in filename:

Classes/Controller/Tx_Formhandler_Controller_Form.php line 713:
$filename = substr($name, 0, strpos($name, '.'));

2. as doFileNameReplace() only works with str_replace() it is not possible to clean a filename completely. This would need regular expressions, which can be used with preg_replace()

37689.patch (1.4 kB) Reinhard Führicht, 2012-06-26 11:58

Associated revisions

Revision 63914
Added by Reinhard Führicht 11 months ago

File name replacements now works on the complete filename. New option "usePregReplace" to activeate optional preg_replace for the replacement (resolves #37689)

Revision 63914
Added by Reinhard Führicht 11 months ago

File name replacements now works on the complete filename. New option "usePregReplace" to activeate optional preg_replace for the replacement (resolves #37689)

History

Updated by Reinhard Führicht 11 months ago

  • File 37689.patch added
  • Status changed from New to Accepted
  • Assignee set to Reinhard Führicht
  • Target version set to v1.4

Updated by Reinhard Führicht 11 months ago

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

Applied in changeset r63914.

Also available in: Atom PDF