Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Removed message alteration from ValidationResult->error() to ma…

…ke it more predictable for string matching in unit tests like SecurityTest

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98275 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 13c8b89310328b8a3bb8c59c7cbe699500995b65 1 parent 96f022b
@chillu chillu authored sminnee committed
Showing with 0 additions and 3 deletions.
  1. +0 −3  core/ValidationResult.php
View
3  core/ValidationResult.php
@@ -34,9 +34,6 @@ function __construct($valid = true, $message = null) {
* @param $code An optional error code string, that can be accessed with {@link $this->codeList()}.
*/
function error($message, $code = null) {
- $message = trim($message);
- if(substr($message,-1) == '.') $message = substr($message,0,-1);
-
$this->isValid = false;
if($code) {
Please sign in to comment.
Something went wrong with that request. Please try again.