mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-01 19:15:59 +01:00
Remove duplication checking for the wiki page name temporarily.
This commit is contained in:
@@ -98,8 +98,8 @@ class WikiController extends ControllerBase {
|
||||
def validate(name: String, value: String): Option[String] = {
|
||||
if(!value.matches("^[a-zA-Z0-9\\-_]+$")){
|
||||
Some("Page name contains invalid character.")
|
||||
} else if(WikiUtil.getPageList(params("owner"), params("repository")).contains(value)){
|
||||
Some("Page already exists.")
|
||||
// } else if(WikiUtil.getPageList(params("owner"), params("repository")).contains(value)){
|
||||
// Some("Page already exists.")
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user