Evolution #6202
Le type "web_address" devrait accepter les valeurs du type "http://1.1.1.1"
Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Distribution:
EOLE 2.4
Description
Le test actuel est trop strict :)
valeur invalide pour l'option revprox_url : nom de domaine invalide
Demandes liées
Révisions associées
autoriser http://1.1.1.1 et http://mamachine dans web_address (fixes #6202)
Historique
#1 Mis à jour par Joël Cuissinat il y a plus de 10 ans
- Version cible changé de Eole 2.4-alpha2 à Eole 2.4-beta1
#2 Mis à jour par Emmanuel GARETTE il y a plus de 10 ans
- Statut changé de Nouveau à Résolu
- % réalisé changé de 0 à 100
Appliqué par commit 9954e8f7961282828e60e122e76e156c78cbc510.
#3 Mis à jour par Emmanuel GARETTE il y a plus de 10 ans
- Echéance mis à 11/10/2013
- Début mis à 07/10/2013
Avant modification :
# python Python 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from creole.loader import creole_loader >>> c=creole_loader(rw=True) >>> c.creole.general.url_maj_blacklist = 'http://1.1.1.1/maj' Traceback (most recent call last): [..] ValueError: valeur invalide pour l'option url_maj_blacklist : nom de domaine invalide >>> c.creole.general.url_maj_blacklist = 'http://mamachine/maj' Traceback (most recent call last): [..] ValueError: valeur invalide pour l'option url_maj_blacklist : nom de domaine invalide, doit avoir un point >>> c.creole.general.url_maj_blacklist = 'http://mamachine.com/maj' >>> c.creole.general.url_maj_blacklist = 'mamachine.com/maj' Traceback (most recent call last): [..] ValueError: valeur invalide pour l'option url_maj_blacklist : URL invalide, devrait démarré avec http:// ou https:// >>>
Après modification :
# python Python 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from creole.loader import creole_loader >>> c=creole_loader(rw=True) >>> c.creole.general.url_maj_blacklist = 'http://1.1.1.1/maj' >>> c.creole.general.url_maj_blacklist = 'http://mamachine/maj' >>> c.creole.general.url_maj_blacklist = 'http://mamachine.com/maj' >>> c.creole.general.url_maj_blacklist = 'mamachine.com/maj' Traceback (most recent call last): [..] ValueError: valeur invalide pour l'option url_maj_blacklist : URL invalide, devrait démarré avec http:// ou https:// >>>