Commit db3f3acf authored by Aurel's avatar Aurel

syncml: prevent selection of path beginning with the same name

parent c6348e9e
...@@ -205,7 +205,7 @@ class SyncMLSubscription(XMLObject): ...@@ -205,7 +205,7 @@ class SyncMLSubscription(XMLObject):
Return the path of the subscription that will be used in sql table Return the path of the subscription that will be used in sql table
_ char must be escaped because of the LIKE behaviour _ char must be escaped because of the LIKE behaviour
""" """
return "%s%%" % (self.getSourceValue().getPath().replace("_","\_"),) return "%s/%%" % (self.getSourceValue().getPath().replace("_","\_"),)
security.declarePrivate('sendSyncCommand') security.declarePrivate('sendSyncCommand')
def sendSyncCommand(self, min_gid, max_gid, message_id, activate_kw): def sendSyncCommand(self, min_gid, max_gid, message_id, activate_kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment