Kaydet (Commit) b620f145 authored tarafından Mustafa AKBEL's avatar Mustafa AKBEL

change template name check

üst 355de222
......@@ -63,7 +63,7 @@ class TemplateController
$fileName = request('fileName');
$fileContent = request('fileContent');
if (!ctype_alnum($fileName)) {
if (!preg_match('/^[a-z0-9-.]+$/', $fileName)) {
return respond(
'Dosya ismi geçersizdir (Türkçe karakter, özel karakter veya boşluk içermemelidir).',
201
......
{
"name": "Ansible",
"publisher": "Administrator",
"version": "0.32",
"version": "0.33",
"database": [],
"widgets": [],
"views": [
......@@ -20,5 +20,5 @@
"verification": null,
"dependencies": "php7.3-yaml",
"sslPorts": null,
"version_code": 17
"version_code": 18
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment