Check-in [9e2363af88]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Change minimum `name` length to 2…33 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
9e2363af881a02436dd6c39b9daf0c15 |
User & Date: | mario 2015-06-20 03:32:40 |
Context
2015-08-28
| ||
06:14 | Change "Update infos" to "Update project". check-in: 4722f13f26 user: mario tags: trunk | |
2015-06-20
| ||
03:32 | Change minimum `name` length to 2…33 check-in: 9e2363af88 user: mario tags: trunk | |
2015-05-15
| ||
19:07 | Filter duplicate entries from SF.net file feed. check-in: 6b2e4d3950 user: mario tags: trunk | |
Changes
Changes to page_submit.php.
︙ | ︙ | |||
23 24 25 26 27 28 29 | "version", "state", "scope", "changes", "download", "urls", "summary", "autoupdate_module", "autoupdate_url", "autoupdate_regex", "submitter", "lock", ); // Get project ID from request | | | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | "version", "state", "scope", "changes", "download", "urls", "summary", "autoupdate_module", "autoupdate_url", "autoupdate_regex", "submitter", "lock", ); // Get project ID from request $name = $_REQUEST->proj_name->length…2…33["name"]; // Retrieve existing project data in DB. $data = release::latest($name); $is_new = empty($data); // Else create empty form value defaults in $data |
︙ | ︙ |
Changes to release.php.
︙ | ︙ | |||
76 77 78 79 80 81 82 | // Format constraints via input filter $newdata instanceof input or $newdata = new input($newdata, "\$newdata"); $newdata->_has_urls = array($this, "has_urls"); $newkeys = $newdata->keys(); $newdata->nocontrol->trim->always(); $newdata = array( | | > | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | // Format constraints via input filter $newdata instanceof input or $newdata = new input($newdata, "\$newdata"); $newdata->_has_urls = array($this, "has_urls"); $newkeys = $newdata->keys(); $newdata->nocontrol->trim->always(); $newdata = array( "name" => $newdata->proj_name ->length…2…33["name"], "homepage" => $newdata->ascii->trim->http ->length…250["homepage"], "download" => $newdata->ascii->trim->url ->length…250["download"], "image" => $newdata->ascii->trim->http ->length…250["image"], "autoupdate_url" => $newdata->ascii->trim->http ->length…250["autoupdate_url"], "title" => $newdata->text ->length…100["title"], "summary" => $newdata->text->spaces ->length…200["summary"], "description" => $newdata->nl ->length…2000["description"], "license" => $newdata->words ->length…30["license"], "tags" => $newdata->words->f_tags ->length…150["tags"], "version" => $newdata->f_version ->length…30["version"], "state" => $newdata->words->strtolower ->length…30["state"], "scope" => $newdata->words->strtolower ->length…30["scope"], "changes" => $newdata->text->nl ->length…2000["changes"], |
︙ | ︙ |