Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/autopatches/20141107.phriction.popkeys.php
Context not available. | |||||
$id = $doc->getID(); | $id = $doc->getID(); | ||||
$key = $doc->getMailKey(); | $key = $doc->getMailKey(); | ||||
if ((strlen($key) == 20) && (strpos($key, "\0") === false)) { | if ((@strlen($key) == 20) && (@strpos($key, "\0") === false)) { | ||||
// To be valid, keys must have length 20 and not contain any null bytes. | // To be valid, keys must have length 20 and not contain any null bytes. | ||||
// See T6487. | // See T6487. | ||||
echo pht('Document has valid mailkey.')."\n"; | echo pht('Document has valid mailkey.')."\n"; | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0