Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 997679e

Browse files
committed
Fix Widget OpenID Permissions for realsies
1 parent bf124c4 commit 997679e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/views/dialogs/WidgetOpenIDPermissionsDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default class WidgetOpenIDPermissionsDialog extends React.Component {
8484
"A widget located at %(widgetUrl)s would like to verify your identity. " +
8585
"By allowing this, the widget will be able to verify your user ID, but not " +
8686
"perform actions as you.", {
87-
widgetUrl: this.props.widgetUrl,
87+
widgetUrl: this.props.widgetUrl.split("?")[0],
8888
},
8989
)}
9090
</p>

src/stores/widgets/StopGapWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class StopGapWidget extends EventEmitter {
250250

251251
// Actually ask for permission to send the user's data
252252
Modal.createTrackedDialog("OpenID widget permissions", '', WidgetOpenIDPermissionsDialog, {
253-
widgetUrl: rawUrl.includes("?") ? rawUrl.substr(0, rawUrl.indexOf("?")) : rawUrl,
253+
widgetUrl: rawUrl,
254254
widgetId: this.widgetId,
255255
isUserWidget: this.appTileProps.userWidget,
256256

0 commit comments

Comments
 (0)