Overview
Comment: | Vérifier le contenu du champ page wiki |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
b3132f3c1ed5fe6d841de6befe5071db |
User & Date: | bohwaz on 2020-01-02 12:41:06 |
Other Links: | manifest | tags |
Context
2020-01-02
| ||
12:45 | Message un peu plus explicite check-in: 622e2708cd user: bohwaz tags: trunk, stable | |
12:41 | Vérifier le contenu du champ page wiki check-in: b3132f3c1e user: bohwaz tags: trunk, stable | |
2019-12-24
| ||
00:12 | Message d'erreur pour les hébergeurs mal configurés check-in: aea525fa9a user: bohwaz tags: trunk | |
Changes
Modified src/include/lib/Garradin/Config.php from [52d2a7f213] to [f9cce905d0].
︙ | ︙ | |||
248 249 250 251 252 253 254 | throw new UserException('Le nom de l\'association ne peut rester vide.'); } break; } case 'accueil_wiki': case 'accueil_connexion': { | | > | > > > > | > | > > | 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | throw new UserException('Le nom de l\'association ne peut rester vide.'); } break; } case 'accueil_wiki': case 'accueil_connexion': { $value = trim($value); $key = str_replace('accueil_', '', $key); if ($value === '') { throw new UserException(sprintf('Le nom de la page d\'accueil %s ne peut rester vide.', $key)); } $db = DB::getInstance(); if (!$db->test('wiki_pages', $db->where('uri', $value))) { throw new UserException(sprintf('Le nom de la page d\'accueil %s ne correspond à aucune page existante.', $key)); } break; } case 'email_asso': { if (!SMTP::checkEmailIsValid($value, false)) { |
︙ | ︙ |