Tag:Absolute path

  • How to set the absolute path of JSP file

    Time:2020-10-23

    Copy codeThe code is as follows: <% String path = request.getContextPath(); String basePath = request.getScheme() + “://” + request.getServerName() + “:” + request.getServerPort() +Path + “/”; / / return form http://localhost :8080/upload/> Call: Copy codeThe code is as follows: <%=basePath%> It can also be used directly in JS code

  • Absolute path URL and relative path URL and subdirectory, parent directory and root directory in HTML

    Time:2019-12-3

    Absolute URL is used to represent all the content required for a specific file in the Internet. Each file in the Internet has a unique URL, which is the connection that needs to be entered into the address bar when searching in the web page. For example, to enter a page below Baidu, enter http://www.baidu.com. […]

  • Absolute Path Leakage in WordPress Blog and Its Repair

    Time:2019-4-12

    One day, it took 360 vulnerabilities to detect, and a total of 56 minutes to complete.The test results are as follows: Bug repair Vulnerability files: (According to alarm information, modify these files, not everyone is the same) 1、/wp-includes/registration-functions.php 2、/wp-admin/admin-functions.php Fixing method 1: error_reporting (0) at the head of the above file; Fix 2: Find the […]