Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
legi
soft
gestex
Commits
4e285497
Commit
4e285497
authored
Jul 15, 2021
by
Estéban Ristich
Browse files
Fix Issue
#62
Add recipe file verification
parent
e9d97bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
intervention-process.php
View file @
4e285497
...
...
@@ -17,10 +17,19 @@ unset($erreur);
$description
=
param_post
(
'description'
);
$equipment_id
=
param_post
(
'equipment'
);
$supplier_id
=
param_post
(
'company'
);
$recipe
=
param_post
(
'recipe'
);
$date
=
param_post
(
'date'
);
$intervention_id
=
param_post
(
'id'
);
$recipe
=
''
;
if
(
isset
(
$_FILES
[
"recipe"
]))
{
$recipe
=
$_FILES
[
'recipe'
][
'name'
];
$recipe
=
str_replace
(
' '
,
'_'
,
$recipe
);
$recipe
=
str_replace
(
'é'
,
'e'
,
$recipe
);
$recipe
=
str_replace
(
'è'
,
'e'
,
$recipe
);
$recipe
=
str_replace
(
'à'
,
'a'
,
$notice
);
}
$pdo
=
connect_db_or_alert
();
$new
=
True
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment