]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/t0105-commit.sh
ui-diff.c: avoid html injection
[ps-cgit] / tests / t0105-commit.sh
index 4e1236bfd979f25b7fcfa2c14d72a2541ef6a30a..ae794c88de0ae24cf13eed5d26ee69a06c2b3718 100755 (executable)
@@ -9,7 +9,7 @@ run_test 'find tree link' 'grep -e "<a href=./foo/tree/.>" trash/tmp'
 run_test 'find parent link' 'grep -E "<a href=./foo/commit/\?id=.+>" trash/tmp'
 
 run_test 'find commit subject' '
-       grep -e "<div class=.commit-subject.>commit 5</div>" trash/tmp
+       grep -e "<div class=.commit-subject.>commit 5<" trash/tmp
 '
 
 run_test 'find commit msg' 'grep -e "<div class=.commit-msg.></div>" trash/tmp'
@@ -26,7 +26,7 @@ run_test 'get root commit' '
 '
 
 run_test 'root commit contains diffstat' '
-        grep "<a href=./foo/diff/file-1.>file-1</a>" trash/tmp
+        grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" trash/tmp
 '
 
 run_test 'root commit contains diff' '