mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 05:25:50 +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] = {
|
def validate(name: String, value: String): Option[String] = {
|
||||||
if(!value.matches("^[a-zA-Z0-9\\-_]+$")){
|
if(!value.matches("^[a-zA-Z0-9\\-_]+$")){
|
||||||
Some("Page name contains invalid character.")
|
Some("Page name contains invalid character.")
|
||||||
} else if(WikiUtil.getPageList(params("owner"), params("repository")).contains(value)){
|
// } else if(WikiUtil.getPageList(params("owner"), params("repository")).contains(value)){
|
||||||
Some("Page already exists.")
|
// Some("Page already exists.")
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user