giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
243 stars 73 forks source link

installed on an https domain but dynamic qr code link created on http domain #66

Closed ebretteville closed 10 months ago

ebretteville commented 10 months ago

Hye, Just installed your software and thanks and congrats for this. After having the problem of the read.php not in the root folder of the app https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/2 , I have one remaining problem. The dynamic qrcode are created/linked to the non secured (http) domain. Anybody in the same situation?

giandonatoinverso commented 10 months ago

Hi I don't if there's anybody in the same situation but how you can see in PHP-Dynamic-Qr-code/qrcode/forms/add_dynamic_form.php line 64, the pattern accepted is pattern="http.://." so you can create link with http or https.

So I think there's a problem during redirection after the scan

ebretteville commented 10 months ago

Ok, any idea where the redirection problem might occure?

giandonatoinverso commented 10 months ago

I don't know

ebretteville commented 10 months ago

I'm not sure that it is a redirection problem as for example the url in the dynamic qrcode table is: https://vcard.etiennebretteville.com and the qrcode generated attached contains the url in http . vCard - url-nfc.png

giandonatoinverso commented 10 months ago

I would not know. So far no one else has reported this issue

ebretteville commented 10 months ago

Where is $_SERVER defined in non docker installation in config.php in:

define('READ_PATH', $_SERVER['HTTP_HOST'].'/read.php?id=');

I think this is maybe the problem of my qrcode generated without https

giandonatoinverso commented 10 months ago

$_SERVER is a php build-in variabile

Il giorno 31 ago 2023, alle ore 10:22, Etienne @.***> ha scritto:



Where is $_SERVER defined in non docker installation in:

define('READ_PATH', $_SERVER['HTTP_HOST'].'/read.php?id=');

I think this is maybe the problem of my qrcode generated without https

— Reply to this email directly, view it on GitHubhttps://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/66#issuecomment-1700582537, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ5M2KAV67DO6U243J2HW7LXYBCSRANCNFSM6AAAAAA4AJGEDE. You are receiving this because you modified the open/close state.Message ID: @.***>

ebretteville commented 10 months ago

The fact is that I can't access to settings and profile from the little human icon in the top right corner, the two links point to : https://qrcode.etiennebretteville.com/index.php#

Still the redirection problem?

giandonatoinverso commented 10 months ago

Those sections are for demostration purpose only and you can implement if you want

ebretteville commented 9 months ago

Fresh install with htaccess redirect all http to https and still qrcode are created with http instead of the one https in the input field