Revision d02b08f2
b/src/gr/grnet/pithos/web/client/FileContextMenu.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
import java.util.List; |
49 | 49 |
|
50 |
import com.google.gwt.http.client.URL; |
|
50 | 51 |
import com.google.gwt.resources.client.ClientBundle; |
51 | 52 |
import com.google.gwt.resources.client.ImageResource; |
52 | 53 |
import com.google.gwt.user.client.Command; |
... | ... | |
248 | 249 |
@Override |
249 | 250 |
public void execute() { |
250 | 251 |
for (File f : selectedFiles) |
251 |
Window.open(app.getApiPath() + f.getOwner() + f.getUri() + "?X-Auth-Token=" + app.getToken(), "_blank", "");
|
|
252 |
Window.open(app.getApiPath() + f.getOwner() + f.getUri() + "?X-Auth-Token=" + URL.encodeQueryString(app.getToken()), "_blank", "");
|
|
252 | 253 |
} |
253 | 254 |
})); |
254 | 255 |
|
b/src/gr/grnet/pithos/web/client/FileList.java | ||
---|---|---|
52 | 52 |
import com.google.gwt.core.client.GWT; |
53 | 53 |
import com.google.gwt.event.dom.client.ContextMenuEvent; |
54 | 54 |
import com.google.gwt.event.dom.client.ContextMenuHandler; |
55 |
import com.google.gwt.http.client.URL; |
|
55 | 56 |
import com.google.gwt.i18n.client.DateTimeFormat; |
56 | 57 |
import com.google.gwt.resources.client.ImageResource; |
57 | 58 |
import com.google.gwt.safehtml.client.SafeHtmlTemplates; |
... | ... | |
383 | 384 |
if (DOM.eventGetType(event) == Event.ONDBLCLICK) |
384 | 385 |
if (getSelectedFiles().size() == 1) { |
385 | 386 |
File file = getSelectedFiles().get(0); |
386 |
Window.open(app.getApiPath() + file.getOwner() + file.getUri() + "?X-Auth-Token=" + app.getToken(), "_blank", "");
|
|
387 |
Window.open(app.getApiPath() + file.getOwner() + file.getUri() + "?X-Auth-Token=" + URL.encodeQueryString(app.getToken()), "_blank", "");
|
|
387 | 388 |
event.preventDefault(); |
388 | 389 |
return; |
389 | 390 |
} |
b/src/gr/grnet/pithos/web/client/ToolsMenu.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
import java.util.List; |
56 | 56 |
|
57 |
import com.google.gwt.http.client.URL; |
|
57 | 58 |
import com.google.gwt.user.client.Command; |
58 | 59 |
import com.google.gwt.user.client.Window; |
59 | 60 |
import com.google.gwt.user.client.ui.AbstractImagePrototype; |
... | ... | |
192 | 193 |
@Override |
193 | 194 |
public void execute() { |
194 | 195 |
for (File f: files) |
195 |
Window.open(app.getApiPath() + f.getOwner() + f.getUri() + "?X-Auth-Token=" + app.getToken(), "_blank", "");
|
|
196 |
Window.open(app.getApiPath() + f.getOwner() + f.getUri() + "?X-Auth-Token=" + URL.encodeQueryString(app.getToken()), "_blank", "");
|
|
196 | 197 |
} |
197 | 198 |
})); |
198 | 199 |
empty = false; |
Also available in: Unified diff