Skip to content

Commit d5fa56e

Browse files
committed
Romanize style sheet names (see contao#7526)
1 parent 029c6a4 commit d5fa56e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

system/docs/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Contao Open Source CMS changelog
44
Version 3.2.17 (2015-01-XX)
55
---------------------------
66

7+
### Fixed
8+
Romanize style sheet names (see #7526).
9+
710
### Fixed
811
Add the username to the "account has been locked" log entry (see #7551).
912

system/modules/core/dca/tl_style_sheet.php

+15
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
'search' => true,
153153
'flag' => 1,
154154
'eval' => array('mandatory'=>true, 'unique'=>true, 'rgxp'=>'alnum', 'maxlength'=>64, 'spaceToUnderscore'=>true),
155+
'save_callback' => array
156+
(
157+
array('tl_style_sheet', 'romanizeName')
158+
),
155159
'sql' => "varchar(64) NOT NULL default ''"
156160
),
157161
'disablePie' => array
@@ -333,6 +337,17 @@ public function listStyleSheet($row)
333337
}
334338

335339

340+
/**
341+
* Romanize the file name (see #7526)
342+
* @param mixed
343+
* @return mixed
344+
*/
345+
public function romanizeName($varValue)
346+
{
347+
return utf8_romanize($varValue);
348+
}
349+
350+
336351
/**
337352
* Sanitize the conditional comments field
338353
* @param mixed

0 commit comments

Comments
 (0)