Bug #37689
incomplete filename replacements
| 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()
Associated revisions
File name replacements now works on the complete filename. New option "usePregReplace" to activeate optional preg_replace for the replacement (resolves #37689)
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.