mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
allow '*' in mimetype for preview command
This commit is contained in:
parent
d563333f05
commit
fbfa2a2132
|
@ -183,7 +183,7 @@ if ($action == "saveSettings")
|
|||
|
||||
// SETTINGS - ADVANCED - INDEX CMD
|
||||
$settings->_converters['fulltext'] = $_POST["converters"];
|
||||
$newmimetype = preg_replace('#[^A-Za-z0-9_/+.-]+#', '', $_POST["converters_newmimetype"]);
|
||||
$newmimetype = preg_replace('#[^A-Za-z0-9_/+.-*]+#', '', $_POST["converters_newmimetype"]);
|
||||
if($newmimetype && trim($_POST["converters_newcmd"])) {
|
||||
$settings->_converters['fulltext'][$newmimetype] = trim($_POST["converters_newcmd"]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user