diff options
author | Andrew Dolgov <[email protected]> | 2020-09-14 20:58:23 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-14 20:58:23 +0300 |
commit | 92fba0b75f4b1292f99773b820ca0c5dd1e68009 (patch) | |
tree | c669826d26b25c85aa407f16fe8dba508e029613 | |
parent | 070d17c8dd14a61c7dd5c2ec6b6aff6d9a4c5bd1 (diff) |
pass source URLs through validate_url()
-rw-r--r-- | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ class Api_Resize_Media extends Plugin { public function api_resize() { - $url = rewrite_relative_url(get_self_url_prefix(), $_REQUEST["url"]); + $url = validate_url($_REQUEST["url"]); $width = (int) $_REQUEST["width"]; $force_stamp = sql_bool_to_bool($_REQUEST["force_stamp"]); |