Skip to content

Commit 626d008

Browse files
committed
Remove accidental invalid escape, #6890
1 parent 08a1fd9 commit 626d008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/admin/language_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
$val = stripslashes($val);
6565
// Use var_export for secure escaping - handles all edge cases including consecutive quotes
6666
$escaped_val = var_export($val, true);
67-
if(!preg_match("/^[a-z0-9_\]+$/", $key)) die('Invalid language file key.');
67+
if(!preg_match("/^[a-z0-9_]+$/", $key)) die('Invalid language file key.');
6868
$file_content .= '$wb['."'$key'".'] = '.$escaped_val.';'."\n";
6969
$msg = 'File saved.';
7070
}

0 commit comments

Comments
 (0)