[mod-security-users] Modifying output buffers "on the fly"
Brought to you by:
victorhora,
zimmerletw
|
From: Daniel F. B. <dfe...@is...> - 2005-07-04 07:34:26
|
Hello, I'm trying to modify the content of the buffer send to the user during the sec_filter_out() function after having in the context the output_ptr and sizelen of data. I've done it but when I write in the new allocated out_ptr using the apr_palloc function and write the new value in len field the user receives the HTML with the old length, so the page is not complete. I'm doing this, at first stage, to strip comment code in HTML (libxml2 adds some tabs, spaces and rets that make HTML occupy more space, but more readable) and later to have signatures to http request to the site in the HTML to avoid alterations in que request to the server. Thanks, --=20 _________________________________ Daniel Fern=E1ndez Bleda Gerente de cuentas e-Security Engineer OPSA/OPST Trainer, CISSP dfe...@is... Internet Security Auditors, S.L. c. Santander, 101. Edif. A. 2=BA 1=AA. 08030 Barcelona Tel: 93 305 13 18 Fax: 93 278 22 48 www.isecauditors.com ____________________________________ Este mensaje y los documentos que, en su caso lleve anexos, pueden contener informaci=F3n confidencial. Por ello, se informa a quien lo reciba por error que la informaci=F3n contenida en el mismo es reservada y su uso no autorizado est=E1 prohibido legalmente, por lo que en tal caso le rogamos que nos lo comunique por la misma v=EDa o por tel=E9fono (93 305 13 18), se abstenga de realizar copias del mensaje o remitirlo o entregarlo a otra persona y proceda a borrarlo de inmediato. En cumplimiento de la Ley Org=E1nica 15/1999 de 13 de diciembre de protecci=F3n de datos de car=E1cter personal, Internet Security Auditors S.L., le informa de que sus datos personales se han incluido en ficheros informatizados titularidad de Internet Security Auditors S.L., que ser=E1 el =FAnico destinatario de dichos datos, y cuya finalida= d exclusiva es la gesti=F3n de clientes y acciones de comunicaci=F3n comercial, y de que tiene la posibilidad de ejercer los derechos de acceso, rectificaci=F3n, cancelaci=F3n y oposici=F3n previstos en la ley mediante carta dirigida a Internet Security Auditors, c. Santander, 101. Edif. A. 2=BA 1=AA, 08030 Barcelona, o v=EDa e-mail a la siguiente direcci=F3n de correo: le...@is... |