Giter VIP home page Giter VIP logo

Comments (3)

DavidGoodwin avatar DavidGoodwin commented on June 4, 2024

I think you're asking if case is a problem ... and it shouldn't be ... at least for MySQL users.

http://www.postfix.org/virtual.5.html

CASE FOLDING
       The search string is folded to lowercase before database lookup. As  of
       Postfix  2.3,  the search string is not case folded with database types
       such as regexp: or pcre: whose lookup fields can match both  upper  and
       lower case.

from postfixadmin.

cboltz avatar cboltz commented on June 4, 2024

Looking up my IRC log (it was a private discussion) - the problem was something like Undefined index [email protected] in .../PFAHandler.php on line 708, and PHP array keys are case sensitive ;-)

from postfixadmin.

DavidGoodwin avatar DavidGoodwin commented on June 4, 2024

hmm, well, if the user or domain had been added with mixed case, then this - https://github.com/postfixadmin/postfixadmin/blob/master/model/PFAHandler.php#L767 would probably fail as it's trying to do :

$result = $this->read_from_db(array($this->id_field => $this->id));
if (count($result) == 1) {
        $this->result = $result[$this->id];
        return true;
}

Which ought to be equivalent to :

$this->result = reset($result)

from postfixadmin.

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.