isValidWebName and isValidTopicName already exist in the TWiki module.
=pod
---+++ isValidWebName( $name, $templateWeb ) -> $boolean
Check for a valid web name.
* =$name= - web name
* =$templateWeb= - flag, optional. If true, then template web names (starting with _)
are considered valid, otherwise only user web names are valid.
Return: true if web name is valid
If $TWiki::cfg{EnableHierarchicalWebs} is off, it will also return false when a nested
web name is passed to it.
*Since:* TWiki::Plugins::VERSION 1.4 (2011-??-??)
=cut
sub isValidWebName {
return TWiki::isValidWebName( @_ );
}
=pod
---+++ isValidTopicName( $name ) -> $boolean
Check for a valid topic name.
* =$name= - topic name
Return: true if topic name is valid
*Since:* TWiki::Plugins::VERSION 1.4 (2011-??-??)
=cut
sub isValidTopicName {
return TWiki::isValidTopicName( @_ );
}
| ChangeProposalForm | |
|---|---|
| TopicClassification | FeatureRequest |
| TopicSummary | Add isValidWebName and isValidTopicName to TWiki::Func |
| CurrentState | MergedToCore |
| CommittedDeveloper | PeterThoeny |
| ReasonForDecision | AcceptedBy7DayFeedbackPeriod |
| DateOfCommitment | 2011-01-08 |
| ConcernRaisedBy | |
| BugTracking | TWikibug:Item6640 |
| OutstandingIssues | |
| RelatedTopics | |
| InterestedParties | |
| ProposedFor | IstanbulRelease |
| TWikiContributors | PeterThoeny |