Theme: Integrate settings to customize the style of edit form tables (label, field, heading and row cells).
Editor: Prevent / (slashes) in clip name. Dialplan Editor: Code cleanup, and minor adjustments for theme compatibility. Functions: Add option to check_str() to skip string trim.
This commit is contained in:
@@ -42,11 +42,15 @@ if (count($_POST)>0) {
|
||||
$clip_uuid = check_str($_POST["id"]);
|
||||
$clip_name = check_str($_POST["clip_name"]);
|
||||
$clip_folder = check_str($_POST["clip_folder"]);
|
||||
$clip_text_start = check_str($_POST["clip_text_start"]);
|
||||
$clip_text_end = check_str($_POST["clip_text_end"]);
|
||||
$clip_text_start = check_str($_POST["clip_text_start"], false);
|
||||
$clip_text_end = check_str($_POST["clip_text_end"], false);
|
||||
$clip_desc = check_str($_POST["clip_desc"]);
|
||||
$clip_order = check_str($_POST["clip_order"]);
|
||||
|
||||
//no slashes
|
||||
$clip_name = str_replace('/', '|', $clip_name);
|
||||
$clip_name = str_replace('\\', '|', $clip_name);
|
||||
|
||||
//sql update
|
||||
$sql = "update v_clips set ";
|
||||
$sql .= "clip_name = '$clip_name', ";
|
||||
|
||||
Reference in New Issue
Block a user