Browse Source

Allow double quotes in ns/caa.php

Miraty 2 years ago
parent
commit
2d4915a73a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pg-act/ns/caa.php
  2. 1 1
      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'])))
 	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>.');
 
 rateLimit();

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

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