일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- android 내부 저장
- Deveopment
- 플러터폰트
- 행나누기
- AndroidStudio
- 프러퍼티
- TEXT속성
- JSP
- android 저장
- 폰트적용하기
- 플러터폰트적용하기
- DB연동
- VirtualBox 오류
- ngshow
- ios공유하기
- android 데이터 저장
- flutterfont
- Tomcat
- ios share
- 스위프트
- 중소기업전세대출연장심사
- Android
- SQL분할
- DB
- ios
- 공유기능
- adb
- Context 쉽게
- 전세대출연장
- ng-show
- Today
- Total
beomboo
WebView 89 HTTP 개행 및 특수문자 미 포함이슈 (2021.03~) 본문
-
2021년도 2월부터 메시지함에 노출 (미노출되는 앱도 존재)
2. 해결
- 앱 내에서 헤더에 디바이스ID 값을 넘겨 보내는 중 문자열 끝부분에서 개행이 포함됨을 확인
- encrypt256, 인코딩 하는 부분에서 Base64.DEFAULT 로 설정이 되어있음을 확인
- 검색 결과 NO_WRAP 이라는 셋팅값으로 넣어줘야 개행을 포함 안하게됨.
- 관련 자료 https://ddolcat.tistory.com/47
/**
* Default values for encoder/decoder flags.
*/
public static final int DEFAULT = 0;
/**
* Encoder flag bit to omit the padding '=' characters at the end
* of the output (if any).
*/
public static final int NO_PADDING = 1;
/**
* Encoder flag bit to omit all line terminators (i.e., the output
* will be on one long line).
*/
public static final int NO_WRAP = 2;
/**
* Encoder flag bit to indicate lines should be terminated with a
* CRLF pair instead of just an LF. Has no effect if {@code
* NO_WRAP} is specified as well.
*/
public static final int CRLF = 4;
/**
* Encoder/decoder flag bit to indicate using the "URL and
* filename safe" variant of Base64 (see RFC 3548 section 4) where
* {@code -} and {@code _} are used in place of {@code +} and
* {@code /}.
*/
public static final int URL_SAFE = 8;
/**
* Flag to pass to {@link Base64OutputStream} to indicate that it
* should not close the output stream it is wrapping when it
* itself is closed.
*/
public static final int NO_CLOSE = 16;
[Android, Java] Base64 인코딩&디코딩
[Android, Java] Base64 인코딩&디코딩 파라미터 값으로 텍스트 값을 가지고 다닐때 값이 깨지는 경우가 있어요. 그럴때 이용하세요. public class Base64Util { /** * Base64 인코딩 * @param text * @return * @..
ddolcat.tistory.com
'AOS' 카테고리의 다른 글
Android 12 Splash 변경사항 대응 (0) | 2024.02.22 |
---|---|
[Android 12] Splash 변경사항 (1) | 2024.02.12 |
[Android] Context 쉽게 배우기 (0) | 2020.05.29 |
error: more than one device/emulator 오류 해결 (0) | 2020.05.27 |
[ADB] Android TV BOX 디버깅하기! (0) | 2019.07.19 |