summaryrefslogtreecommitdiff
path: root/lib/gitlab/regex.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Remove changes that are not absolutely necessary"Douwe Maan2017-05-241-262/+1
| | | This reverts commit b0498c176fa134761d899c9b369be12f1ca789c5
* Remove changes that are not absolutely necessarydm-fix-routesDouwe Maan2017-05-231-1/+262
|
* Fix ambiguous routing issues by teaching router about reserved wordsDouwe Maan2017-05-231-79/+1
|
* Reuse Gitlab::Regex.full_namespace_regex in the DynamicPathValidatorBob Van Landuyt2017-05-021-0/+4
|
* Refactor changing files in web UIDouwe Maan2017-04-201-16/+0
|
* Check registry repository name against regexpGrzegorz Bizon2017-04-031-0/+7
| | | | | This regexp is extracted from Docker Distribution 2.4.1 docs, contains additional `/` element that can be a separator of components.
* Use Namespace#full_path instead of #path where appropriatedm-more-namespace-full-pathDouwe Maan2017-02-231-5/+6
|
* Add GFM support to nested groupsdz-nested-groups-gfm-altDmitriy Zaporozhets2017-02-131-0/+4
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow to use + symbol in filenamesblackst0ne2017-01-151-2/+2
|
* Add an environment slugNick Thomas2016-12-151-0/+9
|
* Introduce deployment services, starting with a KubernetesServiceNick Thomas2016-12-141-0/+8
|
* Allow all alphanumeric characters in file names (!8002)winniehell2016-12-131-2/+2
|
* Add nested groups support to the routingdz-allow-nested-group-routingDmitriy Zaporozhets2016-11-231-2/+12
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix 500 error when group name ends with gitDmitriy Zaporozhets2016-11-211-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow registering users where the username contains dots (.).Timothy Andrew2016-11-181-1/+8
| | | | | | | | | | | | | | | | | | Javascript does not support the negative lookbehind assertion (?<!) used in the Ruby regex (to disallow usernames ending in `.git` or `.atom`. Getting the client side code to fully support this format is non-trivial, since we'd either have to heavily complicate the regex used, or modify the frontend code to support more complex validation schemes (it currently uses HTML5 validations). The pragmatic choice is to create a `Gitlab::Regex::NAMESPACE_REGEX_STR_SIMPLE` regex to serve as a Javascript-compatible version of `NAMESPACE_REGEX_STR`. The client-side code will not display an error for usernames ending in `.git` and `.atom`, but these will be caught by the server-side validation.
* Added ability to put emojis into repository nameVincent Composieux2016-11-121-3/+3
| | | | Added ability to put emojis into repository name
* Refactor namespace regexdz-refactor-namespace-regexDmitriy Zaporozhets2016-11-071-0/+4
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Correct namespace validation to forbid bad names #21077Will Starms2016-10-071-2/+2
| | | | | | Adds .git and .atom to the master namespace regex Updates existing group tests and adds two new ones Updates path cleaning to also forbid .atom
* Remove trailing spaces from messages in Gitlab::Regexrs-trailing-spaces-in-regex-messagesRobert Speicher2016-09-201-3/+3
|
* Fix validation regexs (+1 squashed commit)Kamil Trzcinski2016-09-191-2/+2
| | | | | Squashed commits: [f9a9315] Use : to test invalid environment name
* Fix environments handlingKamil Trzcinski2016-09-191-2/+2
|
* Add support for dynamic environmentsKamil Trzcinski2016-09-191-2/+2
| | | | Environments that can have a URL with predefined CI variables.
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-6/+0
|
* Validate environment name with regexKamil Trzcinski2016-06-141-0/+8
|
* WIPKamil Trzcinski2016-05-081-1/+1
|
* Added docker registry viewKamil Trzcinski2016-05-041-0/+4
|
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/atom-url-issueJames Lopez2016-02-021-4/+4
|\
| * Allow "@" in file names and pathallow-@Jacob Vosmaer2016-02-011-4/+4
| |
* | refactor previous test and add validation to project modelJames Lopez2016-01-291-2/+2
|/
* Add ability to create directories in the editorBen Ford2015-10-291-0/+17
| | | | | | | | | | | | | Simply type a name with a `/` directory separator and new directories will be created. This does not do the fancy UI work that github.com does, but it will get the job done. I could not find tests for file creation, so I didn't add a test for this slight behaviour modification. I did test directory traversals though, using both absolute paths like `/tmp/foo.txt` and relative paths like `../../foo.txt`. Neither case escaped the repository, though attempting to traverse with a relative path resulted in a 500 error that did not affect application stability upon reload.
* Fix (project_)name_regex to accept non-ASCII letters and dashJakub Jirutka2015-04-271-4/+4
|
* Revert "Rename namespace_regex to namespace_path_regex."Douwe Maan2015-04-241-4/+4
| | | | This reverts commit c0116926c743818b2593474946abb40b56d8fefa.
* Rename namespace_regex to namespace_path_regex.Douwe Maan2015-04-241-4/+4
|
* Revert "Revert disallowing usernames to end in period."Douwe Maan2015-04-241-2/+2
| | | | This reverts commit c75c6b840ba9ed82bb01eca52e968c2b0ec985e6.
* Revert disallowing usernames to end in period.revert-username-periodDouwe Maan2015-04-201-2/+2
|
* Don't allow username to end in period.Douwe Maan2015-03-271-2/+4
|
* Use more specific regexes.Douwe Maan2015-03-271-30/+34
|
* Github ImporterValery Sizov2015-01-101-1/+1
|
* Update default regex message to match regex.Ciro Santilli2014-10-011-2/+1
|
* Dont allow ? in project pathDmitriy Zaporozhets2014-07-081-1/+1
| | | | | | | Because it causes 500 error on every page where link to such project exists Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix username validation message to match regexp.Ciro Santilli2014-06-261-0/+23
| | | | Also used for project, group and web ui new file names.
* Allow underscore as the first char for project names.mk2014-03-061-2/+2
| | | | Not sure if the default_regex really has to be expanded for this special use case. We tried to extend only the project_name_regex first, but that didn't help.
* Allow . files to be createdJeroen van Baarsen2014-01-141-2/+2
| | | | Fixes: https://github.com/gitlabhq/gitlabhq/issues/5770
* Add support for various archive formats.Jason Hollingsworth2014-01-021-0/+5
| | | | | | | Used mime-types gem instead of hardcoding content types. Allow multiple extensions in archive route (.tar.gz, .tar.bz2). Change content disposition from infile(?) to attachment for api. Fixed api would return “archive” instead of {project}-{hash}.{ext}
* Fixed issue with `bundle exec rake routes` not running.Jason Hollingsworth2013-12-231-11/+11
| | | | Wrap regex comments in (?#comment) construct.
* Extend Gitlab#default_regex. Dont allow project path ends with .gitDmitriy Zaporozhets2013-11-131-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Expand refs constraints to include valid charactersPeter Fern2013-10-241-0/+23
| | | | Fixes #4831, #4865, #4932
* Allow project name, path etc start with number. Fixed specsDmitriy Zaporozhets2013-08-131-2/+2
|
* Prevent xss attack over group name. Added regex validation for group and ↵Dmitriy Zaporozhets2013-02-181-0/+4
| | | | team name
* Allow spaces in project nameDmitriy Zaporozhets2012-12-281-1/+1
|