|
|
|
@ -45,8 +45,8 @@ func httpUpload(client *xmpp.Client, iqc chan xmpp.IQ,
|
|
|
|
|
|
|
|
|
|
// Get file name
|
|
|
|
|
fileName := filepath.Base(filePath)
|
|
|
|
|
// Just use alphanumerical characters for now to work around
|
|
|
|
|
// https://github.com/mattn/go-xmpp/issues/132
|
|
|
|
|
// Just use alphanumerical and some special characters for now
|
|
|
|
|
// to work around https://github.com/mattn/go-xmpp/issues/132
|
|
|
|
|
reg, err := regexp.Compile(`[^a-zA-Z0-9\+\-\_\.]+`)
|
|
|
|
|
if err != nil {
|
|
|
|
|
log.Fatal(err)
|
|
|
|
|