Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

QR code URL does not consider subfolder installation #204

@jacques42

Description

@jacques42

Describe the bug

Generating the QR code, the URL assumes that Photobooth always is installed in the /var/html/www folder (document root of the webserver). Installing in a subfolder (i.e. /var/html/www/photobooth) QR code URLs won't work

To Reproduce
Steps to reproduce the behavior:

  1. Install in a subfolder
  2. Go to dev mode, take a picture
  3. Generate QR code
  4. Try URL from QR code

Expected behavior

The URL encoded in the QR code needs to reflect the actual path of Photobooth installation root. File api/qrcode.php

$url = 'http://' . $SERVER_IP . '/api/download.php?image=';

Environment (please complete the following information):

  • OS: iOS, Raspberry Pi
  • Browser : All

Photobooth

  • Did it work before? no
  • Which version of Photobooth are you using? v3 Beta

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions