Ignore:
Timestamp:
2014-03-13T14:34:48+13:00 (10 years ago)
Author:
ak19
Message:

First security commit. 1. Introducing the new securitools.h and .cpp files, which port the functions necessary to implement security in Greenstone from OWASP-ESAPI for Java, since OWASP's C++ version is largely not yet implemented, even though their code compiles. The newly added runtime-src/packages/security which contains OWASP ESAPI for C++ will therefore be removed again shortly. 2. receptionist.cpp now sets various web-encoded variants for each cgiarg macro, such as HTML entity encoded, attr encoded, javascript encoded (and css encoded variants). These are now used in the macro files based on which variant is suited to the context. 3. This commit further contains the minimum changes to protect the c, d, and p cgi variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/russian.dm

    r28751 r28888  
    5454_textdescrlogin_ [l=ru] {СтраМОца вÑ
    5555ПЎа}
    56 _textdescrlogout_ [l=ru] {ВыйтО Оз в сОстеЌы как  _cgiargun_}
     56_textdescrlogout_ [l=ru] {ВыйтО Оз в сОстеЌы как  _cgiargunHtmlsafe_}
    5757
    5858_textdescrgreenstone_ [l=ru] {ЭлектрПММая бОблОПтека ГрОМстПуМ}
     
    195195_linktextPREFERENCES_ [l=ru] {НАСТРОЙКИ}
    196196_linktextLOGIN_ [l=ru] {ВОЙТИ}
    197 _linktextLOGGEDIN_ [l=ru] {(вПйтО в сОстеЌу как _cgiargun_)}
     197_linktextLOGGEDIN_ [l=ru] {(вПйтО в сОстеЌу как _cgiargunHtmlsafe_)}
    198198_linktextLOGOUT_ [l=ru] {ВЫЙТИ}
    199199
     
    355355# 'No matches for query: querystring', depending on whether or not there were
    356356# any matches
    357 _textquerytitle_ [l=ru] {_If_(_thislast_,результаты _thisfirst_ - _thislast_ пПОска пП запрПсу: _cgiargq_,НОчегП Ме МайЎеМП пП запрПсу: _cgiargq_)}
     357_textquerytitle_ [l=ru] {_If_(_thislast_,результаты _thisfirst_ - _thislast_ пПОска пП запрПсу: _cgiargqHtmlsafe_,НОчегП Ме МайЎеМП пП запрПсу: _cgiargqHtmlsafe_)}
    358358_textnoquerytitle_ [l=ru] {СтраМОца пПЌПщО}
    359359
Note: See TracChangeset for help on using the changeset viewer.