- missed one file
This commit is contained in:
parent
32431f62c7
commit
377494ca0a
15
services/bbb-web-api/src/java/org/bigbluebutton/api/Util.java
Executable file
15
services/bbb-web-api/src/java/org/bigbluebutton/api/Util.java
Executable file
@ -0,0 +1,15 @@
|
||||
package org.bigbluebutton.api;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public final class Util {
|
||||
|
||||
public static String cleanPresentationFilename(String name) {
|
||||
String cleanFilename = Pattern.compile("[^0-9a-zA-Z_.]").matcher(name).replaceAll("-");
|
||||
if (cleanFilename.startsWith(".")) {
|
||||
return cleanFilename.substring(1);
|
||||
} else {
|
||||
return cleanFilename;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user