Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44372 invoked from network); 12 Aug 2016 11:10:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2016 11:10:03 -0000 Authentication-Results: pb1.pair.com header.from=peter.e.lind@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=peter.e.lind@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: peter.e.lind@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:37646] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/AF-56950-A8EADA75 for ; Fri, 12 Aug 2016 07:10:03 -0400 Received: by mail-wm0-f52.google.com with SMTP id i5so26014845wmg.0 for ; Fri, 12 Aug 2016 04:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cKQCzl+nQGYBOsKEpPmWJpPZmws0MDES2ABRneqLVsQ=; b=StJ8TXmfjKBZbTr2ilzczwHp2s6mbETsEV//hE44QzbH8UF9jo6Wzbe61XRM6mX29z WHC2fPI8AxOt1l+VlItcBBuhVttAIVWqdCu0r7wfZhZpXnVCCbujtXP7AXsk5Z5MQ8D8 VxNygrod6E/eZDHhyX1cYNQ+m/UjrUMN+i835V6NwMaCDBVWQrNtlDTFBE5fzXW3Pq7Z uyKtZ65sN8cWVYmrWYbpI2IpzCv/SEHe6mpcs6RHCg3d5PZliSCInmH0vVnSiM8cRY9J BRXRWZP+xGs2grUjDB/4KNtW/wwonSR9BrU+8eaLYPKIXWT8aBx/LtXT57fdOySOmYAv SPtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cKQCzl+nQGYBOsKEpPmWJpPZmws0MDES2ABRneqLVsQ=; b=MbLXER4kFy51o96Y10pu0N6Y2K/FhhxRAVjiBFhY608ocyhFWvV3Dr16EEZHMddK9U PnUCqNqTlRoPRpmUp5bx/7wxeW3boMH+uMIHIYYK8q/0rocD2kkp4yI5tYGLUAGrWxlZ i33CUqir327c8cBz3VBjO2qSmePsJRFZcLgFYJNsbbd1KpiFEtucIU8mlEDilVCvXyGG Z4jtQv78t01Z8OiYgTVe3h0qbOXbMPfOnwYAAWnNrLHQa8tziwbvgSlAIV+hAHblwJYe qyHkhgpHix96jNlfrFDBuujZDLXCB6tJmjDPzbPODgPzBBiI+kxw24k8SvurW3zUp6c9 o6MQ== X-Gm-Message-State: AEkoouvgg00muDrGXtSVuk4cDfwgdZm2OrAHvJ+J8POCZJotL/cnnWp1kyjzrmFPwlTJXfSAGEy7Ptne/k3DOQ== X-Received: by 10.28.96.11 with SMTP id u11mr2624310wmb.5.1471000200047; Fri, 12 Aug 2016 04:10:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.123.163 with HTTP; Fri, 12 Aug 2016 04:09:39 -0700 (PDT) In-Reply-To: <62f3799e-6df8-fe46-40f7-86c99e80992c@lsces.co.uk> References: <10fbcb03-5de8-4d9a-da1c-7e2bf77937cb@lsces.co.uk> <9f76a201-7423-51d3-96df-d14a1f38b843@gmail.com> <7b2581b5-c75d-cc72-745f-a58cded6dfd9@gmail.com> <62f3799e-6df8-fe46-40f7-86c99e80992c@lsces.co.uk> Date: Fri, 12 Aug 2016 13:09:39 +0200 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1148e4346370480539ddec68 Subject: Re: [PHP-DEV] Simple variable handling. From: peter.e.lind@gmail.com (Peter Lind) --001a1148e4346370480539ddec68 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12 August 2016 at 13:01, Lester Caine wrote: > On 12/08/16 11:01, Peter Lind wrote: > > On 12 August 2016 at 11:54, Rowan Collins > wrote: > > > >> On 12/08/2016 10:21, Lester Caine wrote: > >> > >>> Many of my systems run on secure intra-nets and much of the 'safety > >>> concerns' that have been brought up recently as 'essential' simply > don't > >>> apply. > >> > >> There's always rogue employees / students / visitors with temporary > >> access... But yes, IF you trust your users 100% to be non-malicious, > >> non-curious, and uninfected, THEN you can trust your user input. :) > >> > > You forgot non-clumsy. Typos also happen and can have problematic > results. > > > > You cannot trust user input. End of discussion. > > That someone puts in Joens rather than Jones is a fact of life, and will > result in records that can't be matched. But a UK formatted date > validated in the browser makes checking it's in a valid range easier in > the PHP end. It's simply a matter of just what you can test and where, > and if needs be the system keeps track of who is making mistakes in data > entry and their supervisor deals with them. THAT is a report my CMS > systems have had from day one :) And if all typos were switching 'e' and 'n', what a wonderful world it would be. That is not the case though - it's possible to accidentally enter " and > too. > But if they have stolen someone else=E2=80=99s > access card then all bets are off. But there is no 'delete' function on > the data so all changes are recorded. > > No, all bets are not off. That's the whole point of defense in depth. --=20 CV: careers.stackoverflow.com/peterlind LinkedIn: plind Twitter: kafe15 --001a1148e4346370480539ddec68--