Fossil SCM

Merge two branches that were created within one second of one another. There is a race condition in the anti-forking logic that allowed this fork to occur.

drh 2008-02-08 17:27 trunk merge
Commit 373e42de1d8eea8d95a1b41e106ae8bfab7a1926
2 files changed +2 -3 +2 -2
+2 -3
--- src/admin.c
+++ src/admin.c
@@ -63,13 +63,12 @@
6363
login_needed();
6464
return;
6565
}
6666
style_header("Admin SQL");
6767
@ <hr/><h2>SQL:</h2>
68
- @ <span class='achtung'>You can enter arbitrary SQL here, to execute
69
- @ against the repo database.
70
- @ With great power comes great responsibility...</span><br/>
68
+ @ You can enter only SELECT statements here, and some SQL-side functions
69
+ @ are also restricted.<br/>
7170
@ <form action='' method='post'>
7271
@ <textarea style='border:2px solid black' name='sql'
7372
@ cols='80' rows='5'>%h(zSql)</textarea>
7473
@ <br/><input type='submit' name='sql_submit'/> <input type='reset'/>
7574
@ </form>
7675
--- src/admin.c
+++ src/admin.c
@@ -63,13 +63,12 @@
63 login_needed();
64 return;
65 }
66 style_header("Admin SQL");
67 @ <hr/><h2>SQL:</h2>
68 @ <span class='achtung'>You can enter arbitrary SQL here, to execute
69 @ against the repo database.
70 @ With great power comes great responsibility...</span><br/>
71 @ <form action='' method='post'>
72 @ <textarea style='border:2px solid black' name='sql'
73 @ cols='80' rows='5'>%h(zSql)</textarea>
74 @ <br/><input type='submit' name='sql_submit'/> <input type='reset'/>
75 @ </form>
76
--- src/admin.c
+++ src/admin.c
@@ -63,13 +63,12 @@
63 login_needed();
64 return;
65 }
66 style_header("Admin SQL");
67 @ <hr/><h2>SQL:</h2>
68 @ You can enter only SELECT statements here, and some SQL-side functions
69 @ are also restricted.<br/>
 
70 @ <form action='' method='post'>
71 @ <textarea style='border:2px solid black' name='sql'
72 @ cols='80' rows='5'>%h(zSql)</textarea>
73 @ <br/><input type='submit' name='sql_submit'/> <input type='reset'/>
74 @ </form>
75
+2 -2
--- src/tagview.c
+++ src/tagview.c
@@ -68,12 +68,12 @@
6868
" ORDER BY tx.mtime DESC %s",
6969
zLikeClause, zLimit
7070
);
7171
db_generic_query_view(zSql, 1);
7272
free(zSql);
73
- if( strlen(zLikeClause) ) free(zLikeClause);
74
- if( strlen(zLimit) ) free(zLimit);
73
+ if( zLikeClause[0] ) free(zLikeClause);
74
+ if( zLimit[0] ) free(zLimit);
7575
}
7676
7777
/*
7878
** A small search form which forwards to ?like=SEARCH_STRING
7979
*/
8080
--- src/tagview.c
+++ src/tagview.c
@@ -68,12 +68,12 @@
68 " ORDER BY tx.mtime DESC %s",
69 zLikeClause, zLimit
70 );
71 db_generic_query_view(zSql, 1);
72 free(zSql);
73 if( strlen(zLikeClause) ) free(zLikeClause);
74 if( strlen(zLimit) ) free(zLimit);
75 }
76
77 /*
78 ** A small search form which forwards to ?like=SEARCH_STRING
79 */
80
--- src/tagview.c
+++ src/tagview.c
@@ -68,12 +68,12 @@
68 " ORDER BY tx.mtime DESC %s",
69 zLikeClause, zLimit
70 );
71 db_generic_query_view(zSql, 1);
72 free(zSql);
73 if( zLikeClause[0] ) free(zLikeClause);
74 if( zLimit[0] ) free(zLimit);
75 }
76
77 /*
78 ** A small search form which forwards to ?like=SEARCH_STRING
79 */
80

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button