Handmade modified network news. Net3.0 BUG

zhaozj2021-02-12  154

Recently, our unit wants to install a news system, for the trend, I chose the news. Net3.0.

After installation, everything looks very normal, everyone starts to lose the information to the inside, have always been safe. A few days later, a news with pictures, there is a picture to upload a cup. After passing, I saw a problem. In the picture preview of the homepage, the image size does not use thumbnails, but the same as the original size of the image. The entire page panel is crowded by a large picture.

View the HTML code generated by the web, discover

04070209261250.gif "οnlοad =" javascript: if (this.width> 120) this.style.width = 120; "vSpace = 5 border = 0>

The ONLOAD adjustment picture size has no role.

Use the REFLEctor to find that the code generated this HTML is compiled in dvnews_pages.dll.

Use ILDASM to reverse this DLL reversely configure .il file, look for οnlοad = "JavaScript: if (this.width keyword, it is constructed with StringBuilder, modified to src =" 4062909204820.jpg "width =" and "vSpace = 5 border = 0>.

Then use it again

ILASM / DLL /RESOURCE: dvnews_pages.dll.res /output: dvnews_pages.dll DVNEWS_PAGES.DLL.IL

Regenerate it into a DLL, the picture size of this home page can be freely set.

I still don't understand why the original script doesn't work, will it be a bug of the network?

转载请注明原文地址:https://www.9cbs.com/read-7616.html

New Post(0)