Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Nur HTTP beim QR Code Link

    Scheduled Pinned Locked Moved Entwicklung
    3 Posts 3 Posters 1.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dweuthen
      last edited by

      Hallo,

      mir ist aufgefallen, dass in "src/themes/default/smarty/templates/content/top/main_objectdetail.tpl" HTTP als Protokoll fuer die generierten und im QR Code hinterlegten Links hard-coded ist.
      Auf die Schnelle habe ich auch keine bessere Loesung gefunden als das ebenso hard-coded auf https zu aendern.

      Ich denke, man muesste die Variable $smarty.server.HTTPS auswerten und dem entsprechend das Zugriffsprotokoll anpassen.

      Gruss

      Daniel

      1 Reply Last reply Reply Quote 0
      • SBohmS Offline
        SBohm
        last edited by

        Versuchen Sie mal dieses:

        Datei: src/themes/(default)<– Je nach Thema/smarty/templates/content/top/main_objectdetail.tpl

        [![](src/tools/php/qr/qr_img.php?d=http[{if $smarty.server.HTTPS eq '1'}]s[{/if}]://[{$smarty.server.HTTP_HOST}][{$config.www_dir}]%3FobjID%3D[{$smarty.get.objID}]&s=2)](javascript:;)

        Ersetzen Sie den ursprünglichen Code durch meinen oben genannten jetzt sollte er es erkennen ob HTTPS oder HTTP
        Zu finden Zeile 20-23

        1 Reply Last reply Reply Quote 0
        • dsD Offline
          ds
          last edited by

          In der 0.9.9-4 ist auch HTTPS möglich

          1 Reply Last reply Reply Quote 0
          • First post
            Last post