Denny Vrandecic has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/63834


Change subject: trim incoming string values
......................................................................

trim incoming string values

Change-Id: I0055dddbb0b810432879d275e1e102069e7736c2
---
M DataValues/includes/values/StringValue.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DataValues 
refs/changes/34/63834/1

diff --git a/DataValues/includes/values/StringValue.php 
b/DataValues/includes/values/StringValue.php
index 678fa6d..90c5936 100644
--- a/DataValues/includes/values/StringValue.php
+++ b/DataValues/includes/values/StringValue.php
@@ -63,7 +63,7 @@
                        throw new InvalidArgumentException( 'String length 
exceeds limit of 400 characters' );
                }
 
-               $this->value = $value;
+               $this->value = trim( $value );
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/63834
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0055dddbb0b810432879d275e1e102069e7736c2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DataValues
Gerrit-Branch: mw1.22-wmf4
Gerrit-Owner: Denny Vrandecic <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to