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

    r23571 r28888  
    8484_textdescrpref_ [l=am] {ዚምርጫ ገጜ} 
    8585_textdescrlogin_ [l=am] {ዚመግቢያ ገጜ} 
    86 _textdescrlogout_ [l=am] {እንደ _cgiargun_ ውጣ} 
     86_textdescrlogout_ [l=am] {እንደ _cgiargunHtmlsafe_ ውጣ} 
    8787
    8888_textdescrgreenstone_ [l=am] {ግሪንስቶን ዲጂታል ላይብሚሪ ሶፍትዌር} 
     
    236236_linktextPREFERENCES_ [l=am] {ምርጫዎቜ} 
    237237_linktextLOGIN_ [l=am] {ግባ} 
    238 _linktextLOGGEDIN_ [l=am] {(ዚገባኞው እንደ _cgiargun_ ነው)} 
     238_linktextLOGGEDIN_ [l=am] {(ዚገባኞው እንደ _cgiargunHtmlsafe_ ነው)} 
    239239_linktextLOGOUT_ [l=am] {ውጣ} 
    240240
     
    395395# 'No matches for query: querystring', depending on whether or not there were
    396396# any matches
    397 _textquerytitle_ [l=am] {_If_(_thislast_፣ውጀት _thisfirst_ - _thislast_ ለፀ _cgiargq_ መጠይá‰
    398 á£ ለፀ _cgiargq_ መጠይá‰
     397_textquerytitle_ [l=am] {_If_(_thislast_፣ውጀት _thisfirst_ - _thislast_ ለፀ _cgiargqHtmlsafe_ መጠይá‰
     398፣ ለፀ _cgiargqHtmlsafe_ መጠይá‰
    399399 á‹šáˆšáˆµáˆ›áˆ› ዹለም)} 
    400400_textnoquerytitle_ [l=am] {ዹፍለጋ ገጜ} 
Note: See TracChangeset for help on using the changeset viewer.