mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Disabling random link by default as it poses a security risk. #392
This commit is contained in:
parent
42fd161a66
commit
a1de381caa
@ -57,8 +57,8 @@ export class ClientSharingConfig {
|
||||
|
||||
@SubConfigClass()
|
||||
export class ClientRandomPhotoConfig {
|
||||
@ConfigProperty()
|
||||
enabled: boolean = true;
|
||||
@ConfigProperty({description: 'Enables random link generation. NOTE: With the current implementation, it poses a security risk. See https://github.com/bpatrik/pigallery2/issues/392'})
|
||||
enabled: boolean = false;
|
||||
}
|
||||
|
||||
@SubConfigClass()
|
||||
|
@ -25,10 +25,17 @@
|
||||
|
||||
<ng-container *ngIf="states.enabled.value || settingsService.isSupported()">
|
||||
|
||||
<div class="alert alert-secondary" role="alert" i18n>
|
||||
This feature enables you to generate 'random photo' urls.
|
||||
That URL returns a photo random selected from your gallery.
|
||||
You can use the url with 3rd party application like random changing desktop background.
|
||||
<div class="alert alert-secondary" role="alert">
|
||||
<ng-container i18n>
|
||||
This feature enables you to generate 'random photo' urls.
|
||||
That URL returns a photo random selected from your gallery.
|
||||
You can use the url with 3rd party application like random changing desktop background.
|
||||
</ng-container>
|
||||
<br/>
|
||||
<ng-container i18n>
|
||||
Note: With the current implementation, it poses a security risk. See:
|
||||
</ng-container>
|
||||
<a href="https://github.com/bpatrik/pigallery2/issues/392">#392</a>
|
||||
</div>
|
||||
|
||||
</ng-container>
|
||||
|
Loading…
x
Reference in New Issue
Block a user