{"id":14578,"date":"2024-04-09T05:37:58","date_gmt":"2024-04-09T02:37:58","guid":{"rendered":"https:\/\/elzero.org\/?p=14578"},"modified":"2024-04-09T05:39:34","modified_gmt":"2024-04-09T02:39:34","slug":"wordpress-esc-url-function","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/wordpress-esc-url-function\/","title":{"rendered":"\u0634\u0631\u062d esc_url() \u0648\u0641\u0643\u0631\u0629 \u0639\u0645\u0644\u0647\u0627"},"content":{"rendered":"<div class=\"text\">\r\n\u0627\u0644  <bdi><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/esc_url\/\" rel=\"noopener\" target=\"_blank\">esc_url()<\/a><\/bdi>  \u0647\u064a \u0625\u062e\u062a\u0635\u0627\u0631 \u0644 Escape URL \u0648\u0641\u064a \u0627\u0644\u0628\u0631\u0645\u062c\u0629 Escape \u0647\u064a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0631\u0645\u0648\u0632 \u0627\u0644\u062a\u064a \u0644\u0627 \u0646\u062d\u062a\u0627\u062c\u0647\u0627 \u0645\u0646 \u0627\u0644\u0631\u0627\u0628\u0637 \u0623\u0648 \u0628\u0645\u0639\u0646\u0649 \u0623\u0635\u062d \u062a\u0646\u0638\u064a\u0641 \u0627\u0644\u0631\u0627\u0628\u0637 \u0645\u0646 \u0623\u064a \u0634\u064a\u0621 \u0636\u0627\u0631 \u0648\u0641\u064a \u0627\u0644\u0623\u0633\u0641\u0644 \u0637\u0631\u064a\u0642\u0629 \u0625\u0633\u062a\u062e\u062f\u0627\u0645\u0647\u0627\r\n<\/div>\r\n\r\n<div class=\"text\">\r\n\u0634\u0627\u0647\u062f \u0627\u0644\u0645\u062b\u0627\u0644 \u0628\u062f\u0648\u0646 \u0627\u0644 Escaping \u0648\u0628\u0639\u062f \u0627\u0644 Escaping\r\n<\/div>\r\n\r\n<script type=\"text\/plain\" class=\"language-php\">\r\n$url = 'https:\/\/inval1d.com?one=490&t\"\"\"\\\\\\o=-1&c\\'ontent=<<<ONE>>!&amp;%00#one>';\r\n\/\/ Before Escape\r\necho $url; \/\/ https:\/\/inval1d.com?one=490&t\"\"\"\\\\o=-1&c'ontent=<<>!&%00#one>\r\n\r\n\/\/ After Escape\r\necho esc_url($url); \/\/ https:\/\/inval1d.com?one=490&to=-1&c'ontent=ONE!&%00#one\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u0634\u0631\u062d <bdi>esc_url()<\/bdi> \u0648\u0641\u0643\u0631\u0629 \u0639\u0645\u0644\u0647\u0627<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[526],"tags":[],"class_list":["post-14578","post","type-post","status-publish","format-standard","hentry","category-wordpress-tutorials"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/14578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=14578"}],"version-history":[{"count":3,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/14578\/revisions"}],"predecessor-version":[{"id":14581,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/14578\/revisions\/14581"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=14578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=14578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=14578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}