Porting MatrixHttpApi
This commit is contained in:
parent
b299540a2a
commit
3e75a76d24
3 changed files with 1217 additions and 29 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -37,4 +37,10 @@ class Util {
|
|||
throw new ValidationException("UserIDs must have a domain component, seperated by a :");
|
||||
}
|
||||
}
|
||||
|
||||
public static function checkMxcUrl(string $mxcUrl) {
|
||||
if (substr($mxcUrl, 0, 6) != 'mxc://') {
|
||||
throw new ValidationException('MXC URL did not begin with \'mxc://\'');
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue