소스 검색

Don't allow double quotes in ns/caa.php actually

Miraty 2 년 전
부모
커밋
2e238f629d
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      pg-act/ns/caa.php
  2. 2 2
      pg-view/ns/caa.php

+ 1 - 1
pg-act/ns/caa.php

@@ -8,7 +8,7 @@ if (!($_POST['flag'] >= 0 AND $_POST['flag'] <= 255))
 if (!(preg_match('/^[a-z0-9]{1,127}$/D', $_POST['tag'])))
 if (!(preg_match('/^[a-z0-9]{1,127}$/D', $_POST['tag'])))
 	output(403, 'Wrong value for <code>tag</code>.');
 	output(403, 'Wrong value for <code>tag</code>.');
 
 
-if (!(preg_match('/^[a-zA-Z0-9 .,;"*|#~@=:!?%$+\/\()[\]_-]{1,255}$/D', $_POST['value'])))
+if (!(preg_match('/^[a-zA-Z0-9 .,;*|#~@=:!?%$+\/\()[\]_-]{1,255}$/D', $_POST['value'])))
 	output(403, 'Wrong value for <code>value</code>.');
 	output(403, 'Wrong value for <code>value</code>.');
 
 
 rateLimit();
 rateLimit();

+ 2 - 2
pg-view/ns/caa.php

@@ -6,11 +6,11 @@
 	<br>
 	<br>
 	<label for="tag"><?= _('Tag') ?></label>
 	<label for="tag"><?= _('Tag') ?></label>
 	<br>
 	<br>
-	<input id="tag" minlenght="1" maxlength="128" pattern="^[a-z]{1,127}$" placeholder="issue" name="tag" type="text">
+	<input id="tag" minlenght="1" maxlength="128" pattern="^[a-z0-9]{1,127}$" placeholder="issue" name="tag" type="text">
 	<br>
 	<br>
 	<label for="value"><?= _('Value') ?></label>
 	<label for="value"><?= _('Value') ?></label>
 	<br>
 	<br>
-	<input id="value" minlenght="3" maxlength="1024" pattern="^[a-zA-Z0-9 .,;&quot;*|#~@=:!?%$+\/\()[\]_-]{1,255}$" placeholder="letsencrypt.org" name="value" type="text">
+	<input id="value" minlenght="3" maxlength="1024" pattern="^[a-zA-Z0-9 .,;*|#~@=:!?%$+\/\()[\]_-]{1,255}$" placeholder="letsencrypt.org" name="value" type="text">
 	<br>
 	<br>
 	<input type="submit" value="<?= _('Apply') ?>">
 	<input type="submit" value="<?= _('Apply') ?>">
 </form>
 </form>