Procházet zdrojové kódy

Allow 2 chars IP (::)

Miraty před 2 roky
rodič
revize
01d5dff22b
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      pages/ns/ip.php
  2. 1 1
      pages/reg/glue.php

+ 1 - 1
pages/ns/ip.php

@@ -24,6 +24,6 @@ if (processForm()) {
 <form method="post">
 <?php require "form.ns.php"; ?>
 	<label for="ip">Adresse IP</label><br>
-	<input required="" pattern="^[a-f0-9:.]+$" id="ip" name="ip" minlength="7" maxlength="39" size="40" type="text" placeholder="<?= PLACEHOLDER_IPV6 ?> ou <?= PLACEHOLDER_IPV4 ?>"><br>
+	<input required="" pattern="^[a-f0-9:.]+$" id="ip" name="ip" minlength="2" maxlength="39" size="40" type="text" placeholder="<?= PLACEHOLDER_IPV6 ?> ou <?= PLACEHOLDER_IPV4 ?>"><br>
 	<input value="Valider" type="submit">
 </form>

+ 1 - 1
pages/reg/glue.php

@@ -53,7 +53,7 @@ if (isset($_SESSION['username']))
 		</div>
 	</fieldset>
 	<label for="ip">IP</label><br>
-	<input required="" pattern="^[a-f0-9:.]+$" id="ip" name="ip" minlength="7" maxlength="39" size="40" type="text" placeholder="<?= PLACEHOLDER_IPV4 ?> ou <?= PLACEHOLDER_IPV6 ?>">
+	<input required="" pattern="^[a-f0-9:.]+$" id="ip" name="ip" minlength="2" maxlength="39" size="40" type="text" placeholder="<?= PLACEHOLDER_IPV4 ?> ou <?= PLACEHOLDER_IPV6 ?>">
 	<br>
 	<input value="Valider" type="submit">
 </form>