mirror of
https://github.com/jimeh/zynapse.git
synced 2026-02-19 07:06:39 +00:00
fixed a odd sql inject issue with ActiveRecord's
sql_quote() method
This commit is contained in:
2
vendor/zynapse/active_record.php
vendored
2
vendor/zynapse/active_record.php
vendored
@@ -871,7 +871,7 @@ class ActiveRecord {
|
||||
if ( ($field == 'integer' || $field == 'decimal') && preg_match('/^[0-9\-\.]+$/', $input) ) {
|
||||
return $input;
|
||||
} else {
|
||||
return "'".addslashes($input)."'";
|
||||
return "'".addslashes(urldecode($input))."'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user