Giter Site home page Giter Site logo

Comments (4)

Atomschinken avatar Atomschinken commented on June 6, 2024

If you have set all necessary domain records, try to change line 66 of Classes/Service/PatternService.php to: $subdomain = implode('.', array_reverse($reverseHost));

It works better for me.

from hosts_pattern.

IchHabRecht avatar IchHabRecht commented on June 6, 2024

Hi Atomschinken,

Thank you for the report and sorry for the very long delay. Could you give me a more detailed problem description? Currently I don't know which issue is solved with changing the line.

from hosts_pattern.

Atomschinken avatar Atomschinken commented on June 6, 2024

Hi IchHabRecht,

iirc the problem was after splitting the hostname the parts are reversed to extract the domain.
So when the parts left are combined again for the subdomain they are not correctly ordered.

Example:
www.subdomain.test.de
Explode+reverse:
de
test
subdomain
www

Take the first two parts to get the domain name:
test.de

Now just imploding the rest to get the subdomain would result in this:
subdomain.www.test.de

Regards,

from hosts_pattern.

IchHabRecht avatar IchHabRecht commented on June 6, 2024

Hi Atomschinken,

Thank you for your detailed information. I'm happy to say that this issue was already fixed with commit 180e1a9. Unfortunately I haven't seen before that this issue is from 2014.

from hosts_pattern.

Related Issues (5)

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.