Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Reverted [5abc0f6e7] because testing has shown the referrer to simply be too fragile and subject to browser-side whims (which also includes the option to send only the scheme and host, without the path, as the referrer, which breaks what that commit did). Now style.css supports both style.css/pagename and style.css?page=name, preferring the former, pending a decision on which one of those syntaxes the other devs prefer. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | style-css-revamp |
Files: | files | file ages | folders |
SHA3-256: |
45341a2869324d1c57d3f5ca8ef5d987 |
User & Date: | stephan 2020-05-18 12:32:47.256 |
Context
2020-05-26
| ||
06:47 | merged in trunk. ... (Closed-Leaf check-in: fe018289 user: stephan tags: style-css-revamp) | |
2020-05-18
| ||
12:32 | Reverted [5abc0f6e7] because testing has shown the referrer to simply be too fragile and subject to browser-side whims (which also includes the option to send only the scheme and host, without the path, as the referrer, which breaks what that commit did). Now style.css supports both style.css/pagename and style.css?page=name, preferring the former, pending a decision on which one of those syntaxes the other devs prefer. ... (check-in: 45341a28 user: stephan tags: style-css-revamp) | |
03:38 | Removed doc/help references to "overriding" CSS rules, as that no longer applies in this branch. ... (check-in: a21e2668 user: stephan tags: style-css-revamp) | |
Changes
Changes to src/cgi.c.
︙ | ︙ | |||
445 446 447 448 449 450 451 | const char *zRef = P("referer"); if( zRef==0 ){ zRef = P("HTTP_REFERER"); if( zRef==0 ) zRef = zDefault; } return zRef; } | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 445 446 447 448 449 450 451 452 453 454 455 456 457 458 | const char *zRef = P("referer"); if( zRef==0 ){ zRef = P("HTTP_REFERER"); if( zRef==0 ) zRef = zDefault; } return zRef; } /* ** Return true if the current request appears to be safe from a ** Cross-Site Request Forgery (CSRF) attack. Conditions that must ** be met: ** ** * The HTTP_REFERER must have the same origin |
︙ | ︙ |
Changes to src/style.c.
︙ | ︙ | |||
1077 1078 1079 1080 1081 1082 1083 | ** WEBPAGE: style.css ** ** Return the style sheet. */ void page_style_css(void){ Blob css = empty_blob; int i; | | | 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 | ** WEBPAGE: style.css ** ** Return the style sheet. */ void page_style_css(void){ Blob css = empty_blob; int i; const char *zPage = PD("name",P("page")); cgi_set_content_type("text/css"); /* Emit all default rules... */ for(i=1; cssDefaultList[i].elementClass; i++){ char *z = blob_str(&css); if( !containsSelector(z, cssDefaultList[i].elementClass) ){ blob_appendf(&css, "%s {\n%s}\n", |
︙ | ︙ | |||
1115 1116 1117 1118 1119 1120 1121 | "\n/***********************************************************\n" "** End of page-specific CSS for page %s.\n" "***********************************************************/\n", zPage); } fossil_free(zFile); } | < | 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 | "\n/***********************************************************\n" "** End of page-specific CSS for page %s.\n" "***********************************************************/\n", zPage); } fossil_free(zFile); } blob_append(&css, "\n/***********************************************************\n" "** All CSS which follows is supplied by the repository \"skin\".\n" "***********************************************************/\n", -1); blob_append(&css,skin_get("css"),-1); |
︙ | ︙ |
Changes to src/url.c.
︙ | ︙ | |||
63 64 65 66 67 68 69 | unsigned flags; /* Boolean flags controlling URL processing */ int useProxy; /* Used to remember that a proxy is in use */ char *proxyUrlPath; int proxyOrigPort; /* Tunneled port number for https through proxy */ }; #endif /* INTERFACE */ | < < < < < < < < < < < < < < < < < < < | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | unsigned flags; /* Boolean flags controlling URL processing */ int useProxy; /* Used to remember that a proxy is in use */ char *proxyUrlPath; int proxyOrigPort; /* Tunneled port number for https through proxy */ }; #endif /* INTERFACE */ /* ** Parse the given URL. Populate members of the provided UrlData structure ** as follows: ** ** isFile True if FILE: ** isHttps True if HTTPS: |
︙ | ︙ |