diff --git a/app/src/Server.js b/app/src/Server.js index edfea6b8..47bba3a4 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -64,7 +64,7 @@ dev dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.8.03 + * @version 1.8.04 * */ @@ -439,15 +439,15 @@ function startServer() { // Mattermost const mattermost = new Mattermost(app); - // POST start from here... - app.post('*', function (next) { - next(); - }); + // // POST start from here... + // app.post('*', function (next) { + // next(); + // }); - // GET start from here... - app.get('*', function (next) { - next(); - }); + // // GET start from here... + // app.get('*', function (next) { + // next(); + // }); // Remove trailing slashes in url handle bad requests app.use((err, req, res, next) => { @@ -759,7 +759,7 @@ function startServer() { }); // not specified correctly the room id - app.get('/join/*', (req, res) => { + app.get('/join/\\*', (req, res) => { res.redirect('/'); }); @@ -973,7 +973,7 @@ function startServer() { res.json({ enabled: rtmpEnabled }); }); - app.post('/initRTMP', checkRTMPApiSecret, checkMaxStreams, async (req, res) => { + app.post('/initRTMP', checkRTMPApiSecret, checkMaxStreams, (req, res) => { if (!rtmpCfg || !rtmpCfg.enabled) { return res.status(400).send('RTMP server is not enabled or missing the config'); } @@ -1274,7 +1274,7 @@ function startServer() { }); // not match any of page before, so 404 not found - app.get('*', function (req, res) { + app.get('\\*', function (req, res) { res.sendFile(views.notFound); }); diff --git a/package.json b/package.json index 272d8f2c..1aa1b632 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.8.03", + "version": "1.8.04", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { @@ -69,7 +69,7 @@ "discord.js": "^14.18.0", "dompurify": "^3.2.4", "dotenv": "^16.4.7", - "express": "4.21.2", + "express": "5.1.0", "express-openid-connect": "^2.18.0", "fluent-ffmpeg": "^2.1.3", "he": "^1.2.0", @@ -81,7 +81,7 @@ "mediasoup": "3.15.7", "mediasoup-client": "3.9.5", "nodemailer": "^6.10.0", - "openai": "^4.90.0", + "openai": "^4.91.0", "qs": "6.14.0", "sanitize-filename": "^1.6.3", "socket.io": "4.8.1", diff --git a/public/js/Room.js b/public/js/Room.js index 35655685..2c23280b 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.8.03 + * @version 1.8.04 * */ diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index d19881d2..826e7805 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -9,7 +9,7 @@ * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.8.03 + * @version 1.8.04 * */