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

    r23638 r28888  
    5050_textdescrpref_ [l=ja] {プリファレンスペヌゞ}
    5151_textdescrlogin_ [l=ja] {ログむンペヌゞ} 
    52 _textdescrlogout_ [l=ja] {_cgiargun_ずしおログむンする} 
     52_textdescrlogout_ [l=ja] {_cgiargunHtmlsafe_ずしおログむンする} 
    5353
    5454_textdescrgreenstone_ [l=ja] {グリヌンストヌン電子図曞通゜フトり゚ア}
     
    196196_linktextPREFERENCES_ [l=ja] {プリファレンス}
    197197_linktextLOGIN_ [l=ja] {ログむン} 
    198 _linktextLOGGEDIN_ [l=ja] {(_cgiargun_ずしおログむンする)} 
     198_linktextLOGGEDIN_ [l=ja] {(_cgiargunHtmlsafe_ずしおログむンする)} 
    199199_linktextLOGOUT_ [l=ja] {ログアりト} 
    200200
     
    345345# 'No matches for query: querystring', depending on whether or not there were
    346346# any matches
    347 _textquerytitle_ [l=ja] {_If_(_thislast_,results _thisfirst_ - _thislast_ for query: _cgiargq_,No matches for query: _cgiargq_)}
     347_textquerytitle_ [l=ja] {_If_(_thislast_,results _thisfirst_ - _thislast_ for query: _cgiargqHtmlsafe_,No matches for query: _cgiargqHtmlsafe_)}
    348348_textnoquerytitle_ [l=ja] {怜玢ペヌゞ}
    349349
Note: See TracChangeset for help on using the changeset viewer.