当前位置:网站首页>An unexpected attempt (Imperial CMS list template filters spaces and newlines in smalltext introduction)
An unexpected attempt (Imperial CMS list template filters spaces and newlines in smalltext introduction)
2022-06-26 04:21:00 【Scholar and】
Online search methods :
`
<?
$qian=array(" "," ","\t","\n","\r","<br/>","<p>","</p>");
$hou=array("","","","","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>
`
The experiment failed , Subsequent use htmlentities Function outputs variables as is , The result contains “ Line breaks like spaces ”.
analysis : When the system is submitted , In the content variable br,p, A carriage return , The line feed labels are uniformly converted to carriage return characters , Saved in the database .
result :
<?
$smalltext=str_replace(' ','',$navinfor[smalltext]);
echo $smalltext;
?>
After many tests, it is found that the parameters to be replaced are “ A carriage return ” That is to say, just hit "enter"
notes : It was an incredible result , Just an unintentional attempt , It turned out to be it , Because I am not very proficient in computer theory , So know what it is and don't know why , Write it down for later decryption
边栏推荐
- List of provinces, cities and counties in China
- BSC 及HT 等链的NFT 创造及绑定图片教程
- Introduction Guide to the flutterplugin plug-in in the actual combat of flutter
- Install cenos in the virtual machine
- 08_SpingBoot 集成Redis
- China air compressor manufacturing market demand analysis and investment prospect research report 2022-2028
- Resolve PHP is not an internal or external command
- Gateway can not connect to tcp://127.0.0.1: Connection refused
- Ubuntu installs PostgreSQL and uses omnidb to view
- What preparation should I make before learning SCM?
猜你喜欢

35岁程序员炒Luna 千万资产3天归零,网友:和赌博一样
![[Qunhui] command line acme SH automatically apply for domain name certificate](/img/7b/8cb99ee0d74692ff6afd8513b02834.jpg)
[Qunhui] command line acme SH automatically apply for domain name certificate
![Simple personal summary of tp6 multi application deployment -- Part I [original]](/img/7b/65fab1973423081483dacc9bed9594.jpg)
Simple personal summary of tp6 multi application deployment -- Part I [original]

Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)

Redis cache data consistency solution analysis

Swagger

Using jsup to extract images from interfaces

Performance test comparison between PHP framework jsnpp and thinkphp6
![[geek challenge 2019] rce me](/img/92/978c54fb42391198300c76ae92893d.jpg)
[geek challenge 2019] rce me

六、项目实战---识别猫和狗
随机推荐
Tp6 is easy to tread [original]
Microsoft prohibits Russian users from downloading and installing win10/11
線程同步之讀寫鎖
一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
There is no response to redirection and jump in the laravel constructor [original]
Development trend and prospect forecast report of China's financial industry 2022-2028 Edition
Add, delete, modify and query curd in PHP native SQL
Redis cache data consistency solution analysis
Development prospect and investment strategic planning report of global and Chinese PVC hose industry from 2022 to 2028
Mysql8.0 configuring my SQL in INI file_ mode=NO_ AUTO_ CREATE_ User can start
Laravel access error could not be opened
What if the serial port fails to open when the SCM uses stc-isp to download software?
Detailed explanation of widget construction process of fluent
Install cenos in the virtual machine
Zhubo Huangyu: you can try these non-agricultural operation skills
Performance test comparison between PHP framework jsnpp and thinkphp6
MySQL index details
Upload script file (one sentence back door) WAF bypass (PHP)
WPF value conversion
2021-02-07