File size: 1,288 Bytes
2b4a9d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
container_emphasis_css = """
{
    border: 5px solid rgba(128, 128, 128, 1);
    border-radius: 0.5rem;
    padding: 0em 1em 1em 0.5em;
    background-color: rgba(0, 128, 0, 0.2); 
    overflow-wrap: break-word; /* Added to ensure long words break */
    word-wrap: break-word; /* Added for compatibility with older browsers */
    word-break: break-all; /* Added to handle breaking of long strings */
    white-space: pre-wrap; /* Added to respect new lines and wrap text */
}
"""

container_regular_css = """
{
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 0em 1em 1em 0.5em;
    background-color: rgba(255, 255, 255, 0); 
    overflow-wrap: break-word; /* Added to ensure long words break */
    word-wrap: break-word; /* Added for compatibility with older browsers */
    word-break: break-all; /* Added to handle breaking of long strings */
    white-space: pre-wrap; /* Added to respect new lines and wrap text */
}
"""


question_font = """
<style>
.question-font {
    font-size: 16px !important;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}
</style>
"""


def modify_sql_guid_injection(sql):
    injected = "where UPPER(CompanyGuid) = '14A328EE-1ABF-448C-9F86-8D4E05838F8D')"
    return sql.replace(injected, '\n' + injected)