*/
function jirafeau_async_push($ref, $data, $code, $max_file_size)
{
+ /* Validate ref string. */
+ if (!ctype_xdigit(trim($ref))) {
+ return "Error: Malformed ref string";
+ }
+
/* Get async infos. */
$a = jirafeau_get_async_ref($ref);
*/
function jirafeau_async_end($ref, $code, $crypt, $link_name_length, $file_hash_method)
{
+ /* Validate ref string. */
+ if (!ctype_xdigit(trim($ref))) {
+ return "Error: Malformed ref string";
+ }
+
/* Get async infos. */
$a = jirafeau_get_async_ref($ref);
if (count($a) == 0