mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-26 05:27:35 +02: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()
|
@SubConfigClass()
|
||||||
export class ClientRandomPhotoConfig {
|
export class ClientRandomPhotoConfig {
|
||||||
@ConfigProperty()
|
@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 = true;
|
enabled: boolean = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubConfigClass()
|
@SubConfigClass()
|
||||||
|
@ -25,10 +25,17 @@
|
|||||||
|
|
||||||
<ng-container *ngIf="states.enabled.value || settingsService.isSupported()">
|
<ng-container *ngIf="states.enabled.value || settingsService.isSupported()">
|
||||||
|
|
||||||
<div class="alert alert-secondary" role="alert" i18n>
|
<div class="alert alert-secondary" role="alert">
|
||||||
This feature enables you to generate 'random photo' urls.
|
<ng-container i18n>
|
||||||
That URL returns a photo random selected from your gallery.
|
This feature enables you to generate 'random photo' urls.
|
||||||
You can use the url with 3rd party application like random changing desktop background.
|
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>
|
</div>
|
||||||
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user