Skip to content

Commit 990483a

Browse files
committed
Make isUrl explicitly check for beginning of string
1 parent ab7c825 commit 990483a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/static/sentry/app/utils.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default {
171171
},
172172

173173
isUrl(str) {
174-
return (str.indexOf('http://') !== -1) || (str.indexOf('https://') !== -1);
174+
return (str.indexOf('http://') === 0) || (str.indexOf('https://') === 0);
175175
},
176176

177177
escape(str) {

0 commit comments

Comments
 (0)