Giter VIP home page Giter VIP logo

Comments (5)

ssonnet avatar ssonnet commented on September 6, 2024

Re-bonjour,

J'ai trouvé l'origine de mon problème :

header ('Location: http://'. $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));

Cet exemple provient du fichier login.php dans https://github.com/OpenEdition/lodel/tree/master/lodeladmin. Il manque la prise en compte du https. Corrigé comme suit ça passe (je me suis inspiré d'autres appels à la fonction header() dans Lodel) :

header ("Location: http".(C::get('https', 'cfg') ? 's' : '')."://". $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));

J'ai fait une recherche sur la chaine 'Location: http:' dans le code source, il y a 5 occurrences dans 4 fichiers.

Quelqu'un ici m'a conseillé de faire des pull requests pour proposer mes corrections pour intégration dans la branche master. Ont-elles des chances d'aboutir ? Si oui, y-a-t-il des consignes particulières ?

Cordialement.

from lodel.

nahuelange avatar nahuelange commented on September 6, 2024

J'espère que c'est toujours le cas!
@jfriviere une réponse ?

from lodel.

lnprieto avatar lnprieto commented on September 6, 2024

Bonjour
En effet faire des pull requests est un bon moyen pour proposer des corrections à intégrer dans la branche master.
Les modifications proposées ici ont été intégrées dans master.
Merci
Bien cordialement

from lodel.

nahuelange avatar nahuelange commented on September 6, 2024

Si ça a été intégré, cette issue peut-être fermée j'imagine?

from lodel.

nahuelange avatar nahuelange commented on September 6, 2024

Je viens de faire une PR concernant ce problème : #122

from lodel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.