summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-14 20:58:23 +0300
committerAndrew Dolgov <[email protected]>2020-09-14 20:58:23 +0300
commit92fba0b75f4b1292f99773b820ca0c5dd1e68009 (patch)
treec669826d26b25c85aa407f16fe8dba508e029613
parent070d17c8dd14a61c7dd5c2ec6b6aff6d9a4c5bd1 (diff)
pass source URLs through validate_url()
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 056ec85..e8ff996 100644
--- a/init.php
+++ b/init.php
@@ -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"]);