-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update main #257
Update main #257
Conversation
유저컨트롤 과 나머지 DAO수정완료 -> 작업중
Dashboard 03
order 마무리 밑 admin 작업할려다가 중단
productVo 변경에 따른 order mapper 및 jsp수정
-> Receiving 지원
admin 파트 수정으로 인한 커밋
editinfo 수정
Shipment16
Update history.jsp
stockMate/src/main/java/com/stockm8/controller/api/BarcodeApiController.java
Fixed
Show fixed
Hide fixed
stockMate/src/main/java/com/stockm8/controller/api/BarcodeApiController.java
Fixed
Show fixed
Hide fixed
|
||
<script> | ||
function changePageSize(size) { | ||
location.href = '/order/orderList?page=1&pageSize=' + size; |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 1 month ago
To fix the problem, we need to ensure that the value taken from the DOM is properly sanitized or validated before it is used to construct the URL. The best way to fix this issue without changing existing functionality is to use a function that ensures the value is a valid number before constructing the URL. This can be done using JavaScript's parseInt
function to convert the value to an integer and then checking if it is a valid number.
-
Copy modified line R85 -
Copy modified lines R94-R97
@@ -84,3 +84,3 @@ | ||
<div class="page-size-selector"> | ||
<select onchange="changePageSize(this.value)"> | ||
<select onchange="changePageSize(parseInt(this.value))"> | ||
<option value="10" ${pageVO.cri.pageSize == 10 ? 'selected' : ''}>10개씩 보기</option> | ||
@@ -93,2 +93,6 @@ | ||
function changePageSize(size) { | ||
if (isNaN(size) || size <= 0) { | ||
alert('Invalid page size'); | ||
return; | ||
} | ||
location.href = '/order/orderList?page=1&pageSize=' + size; |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"> | ||
<script src="<c:url value='/resources/scripts/toast.js' />"></script> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>QR 코드 스캔 및 상품 정보</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5-qrcode/2.2.1/html5-qrcode.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>QR 코드 스캔 및 상품 정보</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5-qrcode/2.2.1/html5-qrcode.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>QR 코드 스캔 및 상품 정보</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5-qrcode/2.2.1/html5-qrcode.min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>QR 코드 스캔 및 상품 정보</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5-qrcode/2.2.1/html5-qrcode.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>QR 코드 스캔 및 상품 정보</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5-qrcode/2.2.1/html5-qrcode.min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
</tr> | ||
</c:otherwise> | ||
</c:choose> | ||
</tbody> | ||
</table> | ||
</div> | ||
<!-- jQuery CDN 추가 --> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
…sion Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
No description provided.