shorty: Fixed a buggy security check that resulted in annoying php log entries (warnings).