소스 검색

[index] Return error if no format is specified when requesting a bridge

logmanoriginal 6 년 전
부모
커밋
b4c6aa41a7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      index.php

+ 2 - 1
index.php

@@ -134,7 +134,8 @@ try {
 			$bridge = substr($bridge, 0, $pos);
 		}
 
-		$format = filter_input(INPUT_GET, 'format');
+		$format = filter_input(INPUT_GET, 'format')
+			or returnClientError('You must specify a format!');
 
 		// DEPRECATED: 'nameFormat' scheme is replaced by 'name' in format parameter values
 		//             this is to keep compatibility until futher complete removal