Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Use tempnam() for temporary filenames to avoid collisions completely #8

@WanderingZombie

Description

@WanderingZombie

Just a suggestion... change the following to use PHP's tempnam() function to avoid all chance of collision

    $input_hash = sha1($this->string);
    $file = $this->TEMP_FILES_DIR . '/' . $input_hash . '.txt';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions