Indefero

Indefero Commit Details


Date:2010-02-22 13:50:54 (14 years 9 months ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:5d24931d9bb520718996461c6f6801e34bc00360
Parents: e2bce19526355fc6fd50230aa49fdf5246259f62
Message:Changed to force the shortname to be lower case.

Changes:

File differences

src/IDF/Form/Admin/ProjectCreate.php
158158
159159
160160
161
161
162162
163163
164164
public function clean_shortname()
{
$shortname = $this->cleaned_data['shortname'];
$shortname = mb_strtolower($this->cleaned_data['shortname']);
if (preg_match('/[^\-A-Za-z0-9]/', $shortname)) {
throw new Pluf_Form_Invalid(__('This shortname contains illegal characters, please use only letters, digits and dash (-).'));
}

Archive Download the corresponding diff file

Page rendered in 0.07398s using 13 queries.