X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=uploader.php;h=216091f111da40953d114b0eb3da47225c525c73;hb=646be7194f9fd096ef22f52074cf9c03d595b6ec;hp=0badb1ac91acce01eb9ff29febc47ad8eb6c206a;hpb=fe9a487e1b5ed0700481aee4609055dc6c47505d;p=wfpl.git diff --git a/uploader.php b/uploader.php index 0badb1a..216091f 100644 --- a/uploader.php +++ b/uploader.php @@ -1,19 +1,9 @@ . +# This program is in the public domain within the United States. Additionally, +# we waive copyright and related rights in the work worldwide through the CC0 +# 1.0 Universal public domain dedication, which can be found at +# http://creativecommons.org/publicdomain/zero/1.0/ require_once(__DIR__.'/'.'template.php'); @@ -94,8 +84,8 @@ function wfpl_uploader_progress() { $file = $_REQUEST['wfpl_upload_progress']; $file = strtolower($file); - $file = ereg_replace('[^a-z0-9.-]', '_', $file); - $file = ereg_replace('^[.-]', '_', $file); + $file = preg_replace('|[^a-z0-9.-]|', '_', $file); + $file = preg_replace('|^[.-]|', '_', $file); $file = $GLOBALS['wfpl_uploader_path'] . "/progress/$file"; $waited = 0;