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/farsi.dm

    r23961 r28888  
    7777
    7878_textdescrlogout_ [l=fa] {خروج از سيستÙ
    79  ØšÙ‡ صورت  _cgiargun_} 
     79 ØšÙ‡ صورت  _cgiargunHtmlsafe_} 
    8080
    8181_textdescrgreenstone_ [l=fa] {نرÙ
     
    277277_linktextLOGIN_ [l=fa] {ورود ØšÙ‡ سيستÙ
    278278
    279 _linktextLOGGEDIN_ [l=fa] {ØšÙ‡ عنوان _cgiargun_ وارد سيستÙ
     279_linktextLOGGEDIN_ [l=fa] {ØšÙ‡ عنوان _cgiargunHtmlsafe_ وارد سيستÙ
    280280 ØŽØ¯Ù‡ است} 
    281281_linktextLOGOUT_ [l=fa] {خروج از سيستÙ
     
    508508# 'No matches for query: querystring', depending on whether or not there were
    509509# any matches
    510 _textquerytitle_ [l=fa] {_If_(_thislast_,results _thisfirst_ - _thislast_ for query: _cgiargq_,تطاؚقی یافت ن؎د: _cgiargq_)}
     510_textquerytitle_ [l=fa] {_If_(_thislast_,results _thisfirst_ - _thislast_ for query: _cgiargqHtmlsafe_,تطاؚقی یافت ن؎د: _cgiargqHtmlsafe_)}
    511511_textnoquerytitle_ [l=fa] {صفجه جستجو}
    512512
Note: See TracChangeset for help on using the changeset viewer.