Skip to content

Commit

Permalink
Apparently this.{field_name} is not a string value. Fix matching the …
Browse files Browse the repository at this point in the history
…sync_key.
  • Loading branch information
mrubinsk committed Oct 8, 2013
1 parent 1032ba0 commit 080844f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Mongo.php
Expand Up @@ -1230,7 +1230,7 @@ protected function _gc($syncKey)
$js = <<<EOT
function() {
var p = /^\{([0-9A-Za-z-]+)\}([0-9]+)$/;
var results = this.sync_key.match(p);
var results = p.exec(this.sync_key);
if (results && (results[1] == "$guid") && (results[2] < $n)) {
return true;
} else if (!results) {
Expand Down Expand Up @@ -1261,7 +1261,7 @@ function() {
$js = <<<EOT
function() {
var p = /^\{([0-9A-Za-z-]+)\}([0-9]+)$/;
var results = this.sync_key.match(p);
var results = p.exec(this.sync_key);
if (results && (results[1] == "$guid") && (results[2] < $n)) {
return true;
}
Expand Down

0 comments on commit 080844f

Please sign in to comment.