We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9b206 commit 1d02730Copy full SHA for 1d02730
interface/web/admin/language_edit.php
@@ -64,6 +64,7 @@
64
$val = stripslashes($val);
65
$val = preg_replace('/(^|[^\\\\])((\\\\\\\\)*)"/', '$1$2\\"', $val);
66
$val = str_replace('$', '', $val);
67
+ if(!preg_match("/^[a-z0-9_]+$/", $key)) die('Invalid language file key.');
68
$file_content .= '$wb['."'$key'".'] = "'.$val.'";'."\n";
69
$msg = 'File saved.';
70
}
0 commit comments