You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/03/12 15:28:25 UTC
[openmeetings] branch 4.0.x updated: [OPENMEETINGS-1836] patchUrls
method is improved
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/4.0.x by this push:
new 3003c71 [OPENMEETINGS-1836] patchUrls method is improved
3003c71 is described below
commit 3003c71ab7e18f413e9e1b2ecfb0bbd221680eca
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Mon Mar 12 22:28:15 2018 +0700
[OPENMEETINGS-1836] patchUrls method is improved
---
.../java/org/apache/openmeetings/web/room/wb/WbWebSocketHelper.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/WbWebSocketHelper.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/WbWebSocketHelper.java
index d75b7b6..2707e6d 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/WbWebSocketHelper.java
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/WbWebSocketHelper.java
@@ -136,7 +136,8 @@ public class WbWebSocketHelper extends WebSocketHelper {
return String.format("%s&uid=%s", url, c.getUid());
}
- private static JSONObject patchUrls(BaseFileItem fi, Client c, JSONObject f) {
+ private static JSONObject patchUrls(BaseFileItem fi, Client c, JSONObject _f) {
+ JSONObject f = new JSONObject(_f.toString()); // deep copy to ensure thread safety
switch (fi.getType()) {
case Video:
f.put(PARAM__SRC, patchUrl(f.getString(PARAM__SRC), c));
--
To stop receiving notification emails like this one, please contact
solomax@apache.org.