Commit Graph

10 Commits

Author SHA1 Message Date
Alexander M. Turek
40eee69a92 User was unable to insert values containing quotes. 2003-03-03 11:08:57 +00:00
Alexander M. Turek
2183740b05 If magic_quotes_gpc is enabled, grab_globals calls stripslashes when extracting the arrays $_GET and $_POST. 2003-03-02 17:26:41 +00:00
Michal Čihař
c49e25f092 Move magic words used for fields type into special variable. 2003-02-24 11:15:07 +00:00
Garvin Hicking
133384a8e3 The case when you could edit binary data because of the ProtectBinary
variable is now handled as well. In this case, the (maybe edited) value is
kept, when no file was uploaded. I easified the IF/ELSE-Logic into those
parts:

1. If the file is valid, always use the data of the file and
overwrite any existing data or any input made in the textarea, if
ProtectBinary is set to FALSE.

2. If the file is malicious, the previous data will not be overwritten. If
ProtectBinary is set to FALSE, the input of the textarea will be used
instead.

3. If the file is empty, the previous data will be erased.

Please double-check, even though it's okay for me and I checked all
edit/insert actions with both ProtectBinary set to blob and to false.
2003-02-17 16:41:34 +00:00
Garvin Hicking
2168401a47 Reworked blob file upload. More security cautions, and preserve
fields contents, if no new file was uploaded. Moved is_uploaded_file
function from read_dump.php3 to common.lib.php3 for reusability.
2003-02-17 15:41:34 +00:00
Michal Čihař
7e5f426135 removed checkbox for binary uploads 2003-02-17 09:35:16 +00:00
Marc Delisle
245d00eca9 sometimes filename is none 2003-02-11 17:50:28 +00:00
Marc Delisle
e56dc294be better logic for displaying upload query 2003-02-05 11:02:18 +00:00
Michal Čihař
ea04a49e0a Allow binary uploads 2003-02-03 20:35:16 +00:00
Marc Delisle
e56335bc0e common code in tbl_replace 2003-02-01 12:46:05 +00:00