Commit 8217fd14 authored by Dannon Baker's avatar Dannon Baker
Browse files

Encode tool IDs in icon URLs to handle special characters

This ensures toolshed tool IDs with slashes and other special characters
are properly escaped when constructing the icon endpoint URL.
parent 97fb170e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ function openInteractiveTool(toolId: string) {
                        <div class="tool-icon mr-2">
                            <img
                                v-if="tool.icon"
                                :src="getAppRoot() + 'api/tools/' + tool.id + '/icon'"
                                :src="getAppRoot() + 'api/tools/' + encodeURIComponent(tool.id) + '/icon'"
                                alt="tool icon" />
                            <FontAwesomeIcon v-else :icon="faTools" size="2x" />
                        </div>