Fix admin update forms — restore proper value="" quoting
The security hardening commit accidentally rendered every input value as value=\"...\" (literal backslash-quote in HTML), which mangled all submitted fields including the hidden worker_id/service_id, causing UPDATE to match zero rows and silently no-op. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
6abb90329d
commit
52e00216f7
@@ -1,7 +1,7 @@
|
|||||||
<div class="mainContentContainer" style="top:100px">
|
<div class="mainContentContainer" style="top:100px">
|
||||||
<div class="pageTitle"><?php echo $pageTitle;?></div>
|
<div class="pageTitle"><?php echo $pageTitle;?></div>
|
||||||
<form method="post" action="<?php echo base_url();?>services/service-process">
|
<form method="post" action="<?php echo base_url();?>services/service-process">
|
||||||
<input type="hidden" name ="service_id" value=\"<?php echo htmlspecialchars($selectedItem->service_id, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="hidden" name ="service_id" value="<?php echo htmlspecialchars($selectedItem->service_id, ENT_QUOTES, 'UTF-8');?>">
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Típus</label>
|
<label class="formTitle">Típus</label>
|
||||||
<select class="formDropdownBox" style="padding:0;" name="service_type">
|
<select class="formDropdownBox" style="padding:0;" name="service_type">
|
||||||
@@ -11,47 +11,47 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Kategória (NO)</label>
|
<label class="formTitle">Kategória (NO)</label>
|
||||||
<input type="text" class="formInputBox" name="service_category_no" value=\"<?php echo htmlspecialchars($selectedItem->service_category_no, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_category_no" value="<?php echo htmlspecialchars($selectedItem->service_category_no, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Kategória (EN)</label>
|
<label class="formTitle">Kategória (EN)</label>
|
||||||
<input type="text" class="formInputBox" name="service_category_en" value=\"<?php echo htmlspecialchars($selectedItem->service_category_en, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_category_en" value="<?php echo htmlspecialchars($selectedItem->service_category_en, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Kategória (HU)</label>
|
<label class="formTitle">Kategória (HU)</label>
|
||||||
<input type="text" class="formInputBox" name="service_category_hu" value=\"<?php echo htmlspecialchars($selectedItem->service_category_hu, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_category_hu" value="<?php echo htmlspecialchars($selectedItem->service_category_hu, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Megnevezés (NO)</label>
|
<label class="formTitle">Megnevezés (NO)</label>
|
||||||
<input type="text" class="formInputBox" name="service_name_no" value=\"<?php echo htmlspecialchars($selectedItem->service_name_no, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_name_no" value="<?php echo htmlspecialchars($selectedItem->service_name_no, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Megnevezés (EN)</label>
|
<label class="formTitle">Megnevezés (EN)</label>
|
||||||
<input type="text" class="formInputBox" name="service_name_en" value=\"<?php echo htmlspecialchars($selectedItem->service_name_en, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_name_en" value="<?php echo htmlspecialchars($selectedItem->service_name_en, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Megnevezés (HU)</label>
|
<label class="formTitle">Megnevezés (HU)</label>
|
||||||
<input type="text" class="formInputBox" name="service_name_hu" value=\"<?php echo htmlspecialchars($selectedItem->service_name_hu, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_name_hu" value="<?php echo htmlspecialchars($selectedItem->service_name_hu, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Leírás (NO)</label>
|
<label class="formTitle">Leírás (NO)</label>
|
||||||
<input type="text" class="formInputBox" name="service_description_no" value=\"<?php echo htmlspecialchars($selectedItem->service_description_no, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_description_no" value="<?php echo htmlspecialchars($selectedItem->service_description_no, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Leírás (EN)</label>
|
<label class="formTitle">Leírás (EN)</label>
|
||||||
<input type="text" class="formInputBox" name="service_description_en" value=\"<?php echo htmlspecialchars($selectedItem->service_description_en, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_description_en" value="<?php echo htmlspecialchars($selectedItem->service_description_en, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Leírás (HU)</label>
|
<label class="formTitle">Leírás (HU)</label>
|
||||||
<input type="text" class="formInputBox" name="service_description_hu" value=\"<?php echo htmlspecialchars($selectedItem->service_description_hu, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="service_description_hu" value="<?php echo htmlspecialchars($selectedItem->service_description_hu, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Szolgáltatás ára</label>
|
<label class="formTitle">Szolgáltatás ára</label>
|
||||||
<input type="number" class="formInputBox" name="service_price" value=\"<?php echo htmlspecialchars($selectedItem->service_price, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="number" class="formInputBox" name="service_price" value="<?php echo htmlspecialchars($selectedItem->service_price, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Szolgáltatás időtartama</label>
|
<label class="formTitle">Szolgáltatás időtartama</label>
|
||||||
<input type="time" class="formInputBox" name="service_time" value=\"<?php echo htmlspecialchars($selectedItem->service_time, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="time" class="formInputBox" name="service_time" value="<?php echo htmlspecialchars($selectedItem->service_time, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Szolgáltatás kategória</label>
|
<label class="formTitle">Szolgáltatás kategória</label>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<div class="mainContentContainer" style="top:100px">
|
<div class="mainContentContainer" style="top:100px">
|
||||||
<div class="pageTitle"><?php echo $pageTitle;?></div>
|
<div class="pageTitle"><?php echo $pageTitle;?></div>
|
||||||
<form method="post" action="<?php echo base_url();?>workers/worker-process" enctype="multipart/form-data">
|
<form method="post" action="<?php echo base_url();?>workers/worker-process" enctype="multipart/form-data">
|
||||||
<input type="hidden" name ="worker_id" value=\"<?php echo htmlspecialchars($selectedItem->worker_id, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="hidden" name ="worker_id" value="<?php echo htmlspecialchars($selectedItem->worker_id, ENT_QUOTES, 'UTF-8');?>">
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Név</label>
|
<label class="formTitle">Név</label>
|
||||||
<input type="text" class="formInputBox" name="worker_name" value=\"<?php echo htmlspecialchars($selectedItem->worker_name, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="worker_name" value="<?php echo htmlspecialchars($selectedItem->worker_name, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<img src="<?php echo SITEURL.'assets/img/workers/'.$selectedItem->worker_profile_img;?>" width="100px">
|
<img src="<?php echo SITEURL.'assets/img/workers/'.$selectedItem->worker_profile_img;?>" width="100px">
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Leírás</label>
|
<label class="formTitle">Leírás</label>
|
||||||
<input type="text" class="formInputBox" name="worker_info" value=\"<?php echo htmlspecialchars($selectedItem->worker_info, ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="worker_info" value="<?php echo htmlspecialchars($selectedItem->worker_info, ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Beauty</label>
|
<label class="formTitle">Beauty</label>
|
||||||
@@ -66,11 +66,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">Google Calendar ID</label>
|
<label class="formTitle">Google Calendar ID</label>
|
||||||
<input type="text" class="formInputBox" name="google_calendar_id" value=\"<?php echo htmlspecialchars(isset($selectedItem->google_calendar_id) ? $selectedItem->google_calendar_id : '', ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="google_calendar_id" value="<?php echo htmlspecialchars(isset($selectedItem->google_calendar_id) ? $selectedItem->google_calendar_id : '', ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label class="formTitle">ntfy Topic</label>
|
<label class="formTitle">ntfy Topic</label>
|
||||||
<input type="text" class="formInputBox" name="ntfy_topic" value=\"<?php echo htmlspecialchars(isset($selectedItem->ntfy_topic) ? $selectedItem->ntfy_topic : '', ENT_QUOTES, 'UTF-8');?>\">
|
<input type="text" class="formInputBox" name="ntfy_topic" value="<?php echo htmlspecialchars(isset($selectedItem->ntfy_topic) ? $selectedItem->ntfy_topic : '', ENT_QUOTES, 'UTF-8');?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<input type="submit" class="submitButton" name="updateWorker" value="Módosítás">
|
<input type="submit" class="submitButton" name="updateWorker" value="Módosítás">
|
||||||
|
|||||||
Reference in New Issue
Block a user