Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/autopatches/20150602.mlist.2.php
Context not available. | |||||
$username = preg_replace('/[^a-zA-Z0-9_-]+/', '-', $name); | $username = preg_replace('/[^a-zA-Z0-9_-]+/', '-', $name); | ||||
$username = preg_replace('/-{2,}/', '-', $username); | $username = preg_replace('/-{2,}/', '-', $username); | ||||
$username = trim($username, '-'); | $username = trim($username, '-'); | ||||
if (!strlen($username)) { | if (!@strlen($username)) { | ||||
$username = 'mailinglist'; | $username = 'mailinglist'; | ||||
} | } | ||||
$username .= '-list'; | $username .= '-list'; | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0