Thread Fehlerhafte Eingabe erzeugt 500 Error anstatt Scriptfehlermeldung
(38 answers)
Opened by Auctioneer at 2012-12-01 02:58 Guest DerGast Nein. Das ist nicht nur länger und unbesser als GwenDragon, das ist was ganz anderes. Dein Pattern matcht jetzt nur dann, wenn $loginname aus genau einem Zeichen aus [a-zA-Z0-9] besteht. Wenn schon, dann Code: (dl
)
if ($loginname !~ /\A[a-zA-Z0-9]+\z/) Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"
|