Differences From:
File
src/wikiformat.c
part of check-in
[488afb9746]
- Enforce well-formedness constraints on wiki pagenames.
by
drh on
2007-10-06 17:10:47.
[view]
To:
File
src/wikiformat.c
part of check-in
[50a58adb76]
- Many changes and bug fixes in the wiki processing. Moving toward
a workable wiki system. The "Home" menu option now takes you to
the wiki page whose name is the same as the Project Name. There
is a "wcontent" page, but no link to it yet. Many other changes.
by
drh on
2007-10-10 21:15:17.
[view]
@@ -761,8 +761,10 @@
|| strncmp(zTarget, "ftp:", 4)==0
|| strncmp(zTarget, "mailto:", 7)==0
){
blob_appendf(p->pOut, zTarget);
+ }else if( zTarget[0]=='/' ){
+ blob_appendf(p->pOut, "%s%h", g.zBaseURL, zTarget);
}else if( wiki_name_is_wellformed(zTarget) ){
blob_appendf(p->pOut, "%s/wiki/%T", g.zBaseURL, zTarget);
}else{
blob_appendf(p->pOut, "error");